#include <fontconfig/fontconfig.h> FcChar8 * FcStrDirname (const FcChar8 *file);
Returns the directory containing file. This is returned in newly allocated storage which should be freed when no longer needed.