summaryrefslogtreecommitdiff
path: root/libiberty/basename.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2001-09-26 18:45:50 +0000
committerDJ Delorie <dj@delorie.com>2001-09-26 18:45:50 +0000
commit80699cc1158e6902fa7052f15008a7d14011f50c (patch)
tree210ff566d6a01b4c48d8ca94bc1555d5c1ef770b /libiberty/basename.c
parent08a3fc08804a1e6f4567fbfd0ed64a08b66c98e7 (diff)
downloadbinutils-redhat-80699cc1158e6902fa7052f15008a7d14011f50c.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/basename.c')
-rw-r--r--libiberty/basename.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/libiberty/basename.c b/libiberty/basename.c
index ca089ebbc5..69a982d7dc 100644
--- a/libiberty/basename.c
+++ b/libiberty/basename.c
@@ -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"