mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-16 01:22:18 +03:00
* doc/posix-functions/basename.texi: Mention dirname module and base_name() function. * doc/posix-functions/dirname.texi: Mention dir_name() and mdir_name() functions. Suggested by Werner LEMBERG <wl@gnu.org>.
28 lines
735 B
Plaintext
28 lines
735 B
Plaintext
@node basename
|
|
@section @code{basename}
|
|
@findex basename
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/basename.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:
|
|
IRIX 6.5, Solaris 2.5.1, mingw, MSVC 9, BeOS.
|
|
@item
|
|
glibc has 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
|
|
|
|
The Gnulib module @code{dirname} provides similar API, with function
|
|
@code{base_name}, that also works with Windows file names.
|