pathlib Wiki
Library of pathname and filename manipulation tools
Status: Alpha
Brought to you by:
markhobley
Synopsis
char * stripleadingpath(char *);
Strips leading pathname components, leaving just the [basename]:
./a.out becomes: a.out
Return values
Returns address of basename component (or NULL on error).