Commit | Line | Data |
---|---|---|
e8e1f34c BJ |
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 | } |