Hash :
c36a0f21
Author :
Date :
2024-10-27T17:01:29
doc: Add a module index. * doc/Makefile (undocumented-modules.texi): New rule. (%.info, %.html, %.dvi, %.pdf): Depend on undocumented-modules.texi. (mostlyclean): Remove also *.m and *.tmp. (force): New rule. * doc/*.texi: Add module index entries. * doc/*/*.texi: Likewise.
@node basename
@subsection @code{basename}
@findex basename
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/basename.html}
LSB specification:@* @url{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:
@itemize
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw, MSVC 14.
@item
glibc and Android have two different functions @code{basename}: the POSIX
version and the GNU version.
@item
@code{basename} assumes file names in POSIX syntax; it does not work with file
names in Windows syntax.
@end itemize
@mindex basename-lgpl
The Gnulib module @code{basename-lgpl} provides similar API, with a function
@code{last_component}, that also works with Windows file names.