source:
trunk/src/binutils/libiberty/basename.c@
1969
| Last change on this file since 1969 was 1429, checked in by , 22 years ago | |
|---|---|
|
|
| File size: 1.2 KB | |
| Line | |
|---|---|
| 1 | /* Return the basename of a pathname. |
| 2 | This file is in the public domain. */ |
| 3 | |
| 4 | /* |
| 5 | |
| 6 | @deftypefn Supplemental char* basename (const char *@var{name}) |
| 7 | |
| 8 | Returns a pointer to the last component of pathname @var{name}. |
| 9 | Behavior is undefined if the pathname ends in a directory separator. |
| 10 | |
| 11 | @end deftypefn |
| 12 | |
| 13 | */ |
| 14 | |
| 15 | #include "ansidecl.h" |
| 16 | #include "libiberty.h" |
| 17 | #include "safe-ctype.h" |
| 18 | |
| 19 | #ifndef DIR_SEPARATOR |
| 20 | #define DIR_SEPARATOR '/' |
| 21 | #endif |
