1 #ifndef lint 2 static char sccsid[] = "@(#)lastpart.c 5.4 (Berkeley) 06/20/85"; 3 #endif 4 5 #include "uucp.h" 6 7 /*LINTLIBRARY*/ 8 9 /* 10 * find last part of file name 11 * 12 * return - pointer to last part 13 */ 14 15 char * 16 lastpart(file) 17 register char *file; 18 { 19 register char *c; 20 21 c = rindex(file, '/'); 22 if (c++) 23 return c; 24 else 25 return file; 26 } 27