projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 3 development
[unix-history]
/
usr
/
src
/
cmd
/
uucp
/
lastpart.c
/*******
* char *
* lastpart(file) find last part of file name
* char *file;
*
* return - pointer to last part
*/
char
*
lastpart
(
file
)
char
*
file
;
{
char
*
c
;
c
=
file
+
strlen
(
file
);
while
(
c
>=
file
)
if
(*(--
c
) ==
'/'
)
break
;
return
(++
c
);
}