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