home *** CD-ROM | disk | FTP | other *** search
- BASENAME(3) Library Functions BASENAME(3)
-
-
-
- NAME
- basename - return the file name in a full path specification
-
- SYNOPSIS
- #include <edlib.h>
-
- char *basename(path)
- char *path;
-
- DESCRIPTION
- Basename will return a pointer to the file name in a full
- AmigaDOS path specification. If there is no directory part
- specified in the path, a pointer to the first character in
- the string is returned. If there is no file name, a pointer
- to the null which terminates the path parameter is returned.
-
- EXAMPLE
- basename("foo:42") is "42"
- basename("foo:bar/Arthur Dent") is "Arthur Dent"
- basename("RAYGUN:") is ""
- basename("rutabega") is "rutabega"
-
- AUTHOR
- Edwin Hoogerbeets 01/08/88
-
-
-
-