|
|
1.1 ! root 1: #ifndef lint ! 2: static char sccsid[] = "@(#)lastpart.c 5.4 (Berkeley) 6/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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.