date and time created 85/01/22 13:49:39 by ralph
[unix-history] / usr / src / usr.bin / uucp / libuu / lastpart.c
CommitLineData
2a3f509e
SL
1#ifndef lint
2static char sccsid[] = "@(#)lastpart.c 5.1 (Berkeley) %G%";
3#endif
4
5/*******
6 * char *
7 * lastpart(file) find last part of file name
8 * char *file;
9 *
10 * return - pointer to last part
11 */
12
13char *
14lastpart(file)
15register char *file;
16{
17 register char *c;
18
19 c = file + strlen(file);
20 while (c >= file)
21 if (*(--c) == '/')
22 break;
23 return(++c);
24}