Thread safe basename.
@param path the string to parse, on DOS both \ and / are considered separators.
@return pointer to the basename substring.
If path does not contain a slash, the function returns a copy of path.
If path is a NULL pointer or points to an empty string, a pointer
to a string "." is returned.
Thread safe basename. @param path the string to parse, on DOS both \ and / are considered separators. @return pointer to the basename substring. If path does not contain a slash, the function returns a copy of path. If path is a NULL pointer or points to an empty string, a pointer to a string "." is returned.