home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V7 / usr / src / cmd / uucp / lastpart.c < prev    next >
Encoding:
C/C++ Source or Header  |  1979-01-10  |  262 b   |  23 lines

  1.  
  2.  
  3. /*******
  4.  *    char *
  5.  *    lastpart(file)    find last part of file name
  6.  *    char *file;
  7.  *
  8.  *    return - pointer to last part
  9.  */
  10.  
  11. char *
  12. lastpart(file)
  13. char *file;
  14. {
  15.     char *c;
  16.  
  17.     c = file + strlen(file);
  18.     while (c >= file)
  19.         if (*(--c) == '/')
  20.             break;
  21.     return(++c);
  22. }
  23.