careadlinkat: Use 'restrict'.
[gnulib.git] / doc / posix-functions / basename.texi
blobe75b510200f704360b1e46cf1856de963b1d9011
1 @node basename
2 @section @code{basename}
3 @findex basename
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/basename.html}
7 Gnulib module: ---
9 Portability problems fixed by Gnulib:
10 @itemize
11 @end itemize
13 Portability problems not fixed by Gnulib:
14 @itemize
15 @item
16 This function is missing on some platforms:
17 IRIX 6.5, mingw, MSVC 14.
18 @item
19 glibc and Android have two different functions @code{basename}: the POSIX
20 version and the GNU version.
21 @item
22 @code{basename} assumes file names in POSIX syntax; it does not work with file
23 names in Windows syntax.
24 @end itemize
26 The Gnulib module @code{dirname} provides similar API, with function
27 @code{base_name}, that also works with Windows file names.