home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / edlib.lzh / EDLIB / MAN / BASENAME next >
Encoding:
Text File  |  1991-08-16  |  803 b   |  32 lines

  1. BASENAME(3)                Library Functions               BASENAME(3)
  2.  
  3.  
  4.  
  5. NAME
  6.      basename - return the file name in a full path specification
  7.  
  8. SYNOPSIS
  9.      #include <edlib.h>
  10.  
  11.      char *basename(path)
  12.      char *path;
  13.  
  14. DESCRIPTION
  15.      Basename will return a pointer to the file name in a full
  16.      AmigaDOS path specification. If there is no directory part
  17.      specified in the path, a pointer to the first character in
  18.      the string is returned. If there is no file name, a pointer
  19.      to the null which terminates the path parameter is returned.
  20.  
  21. EXAMPLE
  22.      basename("foo:42")              is "42"
  23.      basename("foo:bar/Arthur Dent") is "Arthur Dent"
  24.      basename("RAYGUN:")             is ""
  25.      basename("rutabega")            is "rutabega"
  26.  
  27. AUTHOR
  28.      Edwin Hoogerbeets 01/08/88
  29.  
  30.  
  31.  
  32.