realloc: more improvements for realloc (p, 0)
[gnulib.git] / doc / posix-functions / basename.texi
blob2e53ee6a1dc0c5c15c29aea8590bf8426cb273ce
1 @node basename
2 @subsection @code{basename}
3 @findex basename
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/basename.html}
7 LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-basename-3.html}
9 Gnulib module: ---
11 Portability problems fixed by Gnulib:
12 @itemize
13 @end itemize
15 Portability problems not fixed by Gnulib:
16 @itemize
17 @item
18 This function is missing on some platforms:
19 mingw, MSVC 14.
20 @item
21 glibc and Android have two different functions @code{basename}: the POSIX
22 version and the GNU version.
23 @item
24 @code{basename} assumes file names in POSIX syntax; it does not work with file
25 names in Windows syntax.
26 @end itemize
28 The Gnulib module @code{basename-lgpl} provides similar API, with a function
29 @code{last_component}, that also works with Windows file names.