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