Next: bind
, Previous: atoll
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
basename
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/basename.html
LSB specification:
https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-basename-3.html
Gnulib module: —
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
basename
: the POSIX
version and the GNU version.
basename
assumes file names in POSIX syntax; it does not work with file
names in Windows syntax.
The Gnulib module basename-lgpl
provides similar API, with a function
last_component
, that also works with Windows file names.