FcStrDirname(3)

πŸ’… FcStrDirname(3) β€” the FcStrDirname manual, bestie ✨

πŸŽ€ NAME πŸŽ€

FcStrDirname β€” directory part of filename


🌸 SYNOPSIS 🌸

#include <fontconfig/fontconfig.h>

FcChar8 * FcStrDirname (const FcChar8 *file);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so FcStrDirname returns the directory containing file. Iconic. It hands you that directory in newly allocated storage, which you should free when you no longer need it β€” yes, bestie, that means you gotta clean up after yourself πŸ’–

no cap: the storage is newly allocated, so don’t just leave it hanging around forever 🫢

mwah πŸ’‹ β€” Fontconfig 2.17.0, 27 June 2025

πŸ“¦ where this page comes from