SYNOPSIS
#include <libgen.h>
char *basename(char *path);
DESCRIPTION
The
If the string consists entirely
of directory separator characters,
If the specified path is a null
pointer or points to an empty string,
The
PARAMETERS
RETURN VALUES
The
CONFORMANCE
UNIX 98, with exceptions
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
The NuTCRACKER Platform recognizes both '/' and '\' as directory separators. It looks for the right-most occurrence of either character in the path name, and if both are found, assumes that the last one that occurs in the path name is the directory separator for that path.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
dirname()
PTC MKS Toolkit 10.5 Documentation Build 40.