#include <fontconfig.h>
FcChar8 * FcStrCopyFilename(const FcChar8 *s);
FcChar8 * FcStrCopyFilename
Just like FcStrCopy except that it converts any leading '~' characters in s to the value of the HOME environment variable. Returns NULL if '~' is present in s and HOME is unset.
Fontconfig version 2.4.1