Don't roll a private copy of basename().

This commit is contained in:
Matthew N. Dodd 2003-03-26 02:54:56 +00:00
parent 85785286b4
commit 6181d229c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112662

View File

@ -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
*