FcStrBasename(3)
π FcStrBasename(3) π
okay bestie, welcome to the FcStrBasename(3) manual page β yes, the whole page is about grabbing the last component of a filename, and itβs lowkey iconic. π
πΈ NAME πΈ
FcStrBasenameβ last component of filename β¨
π¦ SYNOPSIS π¦
#include <fontconfig/fontconfig.h>
FcChar8 * FcStrBasename (const FcChar8 *file);
π DESCRIPTION π
So you hand it a file, and FcStrBasename gives you back the filename with any leading directory names stripped off. Like, itβs giving βjust the last component, maβam.β π
The catch? The returned string lives in newly allocated storage, so you gotta free it when itβs no longer needed. No leaving it hanging around like an unread group chat. π«Ά
π«Ά thatβs the whole vibe, signed off by Fontconfig 2.17.0 on 27 June 2025 π«Ά
π¦ where this page comes from
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms