---
name: "FcStrCopy"
section: "3"
platform: "linux"
package: "fontconfig"
version: "2:2.18.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FcStrCopy"
---

# FcStrCopy(3)

duplicate a string

## NAME

FcStrCopy - duplicate a string

## SYNOPSIS

**#include \<fontconfig/fontconfig.h\>**

**FcChar8 \* FcStrCopy (const FcChar8 \****s***);**

## DESCRIPTION

Allocates memory, copies *s* and returns the resulting buffer.  Yes, this is **strdup**, but that function isn't available on every platform.
