FcStrDirname − directory part of filename
#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.
Fontconfig version 2.10.95