binutils ChangeLog:
[deliverable/binutils-gdb.git] / libiberty / basename.c
index ca089ebbc5ae59951af6074dd4c2146d3eb52aff..69a982d7dca8f5795b69e361347bf84ec0ef0314 100644 (file)
@@ -2,20 +2,14 @@
    This file is in the public domain. */
 
 /*
-NAME
-       basename -- return pointer to last component of a pathname
 
-SYNOPSIS
-       char *basename (const char *name)
+@deftypefn Supplemental char* basename (const char *@var{name})
 
-DESCRIPTION
-       Given a pointer to a string containing a typical pathname
-       (/usr/src/cmd/ls/ls.c for example), returns a pointer to the
-       last component of the pathname ("ls.c" in this case).
+Returns a pointer to the last component of pathname @var{name}.
+Behavior is undefined if the pathname ends in a directory separator.
+
+@end deftypefn
 
-BUGS
-       Presumes a UNIX or DOS/Windows style path with UNIX or DOS/Windows 
-       style separators.
 */
 
 #include "ansidecl.h"
This page took 0.03748 seconds and 4 git commands to generate.