---
name: "FcStrBasename"
section: "3"
platform: "linux"
package: "fontconfig"
version: "2:2.18.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FcStrBasename"
---

# FcStrBasename(3)

last component of filename

## NAME

FcStrBasename - last component of filename

## SYNOPSIS

**#include \<fontconfig/fontconfig.h\>**

**FcChar8 \* FcStrBasename (const FcChar8 \****file***);**

## DESCRIPTION

Returns the filename of *file* stripped of any leading directory names.  This is returned in newly allocated storage which should be freed when no longer needed.
