/********************************************************************** * Copyright (c) Digital Equipment Corporation 1984, 1985, 1986. * * All Rights Reserved. * * Reference "/usr/src/COPYRIGHT" for applicable restrictions. * **********************************************************************/ static char Sccsid[] = "@(#)lastpart.c 3.0 4/22/86"; /******* * 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); }