1*48652Sbostic /*- 2*48652Sbostic * Copyright (c) 1985 The Regents of the University of California. 3*48652Sbostic * All rights reserved. 4*48652Sbostic * 5*48652Sbostic * %sccs.include.proprietary.c% 6*48652Sbostic */ 7*48652Sbostic 813660Ssam #ifndef lint 9*48652Sbostic static char sccsid[] = "@(#)lastpart.c 5.5 (Berkeley) 04/24/91"; 10*48652Sbostic #endif /* not lint */ 1113660Ssam 1223610Sbloom #include "uucp.h" 1323610Sbloom 1423610Sbloom /*LINTLIBRARY*/ 1523610Sbloom 1623610Sbloom /* 1723610Sbloom * find last part of file name 1813660Ssam * 1913660Ssam * return - pointer to last part 2013660Ssam */ 2113660Ssam 2213660Ssam char * 2313660Ssam lastpart(file) 2413660Ssam register char *file; 2513660Ssam { 2613660Ssam register char *c; 2713660Ssam 2817835Sralph c = rindex(file, '/'); 2923610Sbloom if (c++) 3023610Sbloom return c; 3117835Sralph else 3217835Sralph return file; 3313660Ssam } 34