/************************************************************************
* A file just for lastdirsep() *
* *
* Copyright (c) 1994-1997, S.R. van den Berg, The Netherlands *
* #include "../README" *
************************************************************************/
#ifdef RCS
static /*const*/char rcsid[]=
"$Id: lastdirsep.c,v 1.4 1997/04/03 01:58:44 srb Exp $";
#endif
#include "includes.h"
#include "lastdirsep.h"
extern const char dirsep[];
char*lastdirsep(filename)const char*filename; /* finds the next character */
{ const char*p; /* following the last DIRSEP */
while(p=strpbrk(filename,dirsep))
filename=p+1;
return (char*)filename;
}
syntax highlighted by Code2HTML, v. 0.9.1