1 /************************************************************************ 2 * A file just for lastdirsep() * 3 * * 4 * Copyright (c) 1994-1997, S.R. van den Berg, The Netherlands * 5 * #include "../README" * 6 ************************************************************************/ 7 #ifdef RCS 8 static /*const*/char rcsid[]= 9 "$Id: lastdirsep.c,v 1.4 1997/04/03 01:58:44 srb Exp $"; 10 #endif 11 #include "includes.h" 12 #include "lastdirsep.h" 13 14 extern const char dirsep[]; 15 lastdirsep(filename)16char*lastdirsep(filename)const char*filename; /* finds the next character */ 17 { const char*p; /* following the last DIRSEP */ 18 while(p=strpbrk(filename,dirsep)) 19 filename=p+1; 20 return (char*)filename; 21 } 22