FcStrDirname (3) - Linux Manuals
FcStrDirname: directory part of filename
NAME
FcStrDirname - directory part of filename
SYNOPSIS
#include <fontconfig/fontconfig.h>
FcChar8 * FcStrDirname (const FcChar8 *file);
DESCRIPTION
Returns the directory containing file. This is returned in newly allocated storage which should be freed when no longer needed.