#include <fontconfig/fontconfig.h>
FcChar8 * FcStrCopy(const FcChar8 *s);
FcChar8 * FcStrCopy
Allocates memory, copies s and returns the resulting buffer. Yes, this is strdup, but that function isn't available on every platform.