Don't roll a private copy of basename().
This commit is contained in:
parent
85785286b4
commit
6181d229c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112662
@ -65,6 +65,7 @@
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <libatm.h>
|
||||
#include <libgen.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -2081,30 +2082,6 @@ set_address ( hdr, intf )
|
||||
send_resp ( intf, PDU_Header, Resp_Buf );
|
||||
}
|
||||
|
||||
/*
|
||||
* Utility to strip off any leading path information from a filename
|
||||
*
|
||||
* Arguments:
|
||||
* path pathname to strip
|
||||
*
|
||||
* Returns:
|
||||
* fname striped filename
|
||||
*
|
||||
*/
|
||||
char *
|
||||
basename ( path )
|
||||
char *path;
|
||||
{
|
||||
char *fname;
|
||||
|
||||
if ( ( fname = (char *)strrchr ( path, '/' ) ) != NULL )
|
||||
fname++;
|
||||
else
|
||||
fname = path;
|
||||
|
||||
return ( fname );
|
||||
}
|
||||
|
||||
/*
|
||||
* Increment Debug Level
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user