Is Basename Thread Safe?
The Basename() Function Need Not Be Thread-Safe. Is Basename a Posix? with Glibc, One Gets the Posix Version of Basename() When Is Included, and the Gnu...
The basename() function need not be thread-safe.
Is basename a Posix?
With glibc, one gets the POSIX version of basename() when <libgen. h> is included, and the GNU version otherwise.
What does basename return?
The basename() function takes the pathname pointed to by path and returns a pointer to the final component of the pathname, deleting any trailing '/' characters. If the string consists entirely of the '/' character, basename() returns a pointer to the string “/”.