mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
No need to create another version of basename(), there's one available
on Linux
This commit is contained in:
parent
5aea241fd1
commit
8b79b425f8
1 changed files with 2 additions and 0 deletions
|
@ -362,6 +362,7 @@ append_real_subtrees( _Tt_string_list_ptr realtrees, _Tt_string path )
|
|||
/*
|
||||
* basename() - Return the last component of a pathname.
|
||||
*/
|
||||
#if !defined(linux)
|
||||
char *basename( char *pathname ) {
|
||||
char *the_basename;
|
||||
|
||||
|
@ -373,6 +374,7 @@ char *basename( char *pathname ) {
|
|||
}
|
||||
return the_basename;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* dirname() - Return the pathname minus the basename, or "." if the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue