cc [ flag ... ] file ... -lgen [ library ... ]
#include <libgen.h>
char *basename(char *path);
MT-Safe
If path or *path is zero, pointer to a static constant ‘‘.’’ is returned.
Input string Output pointer /usr/lib lib /usr/ usr / /
When compiling multi-thread applications, the _REENTRANT flag must be defined on the compile line. This flag should only be used in multi-thread applications.