basename (3) Linux Manual Page
NAME basename, dirname – parse pathname components SYNOPSIS #include <libgen.h> char *dirname(char *path); char *basename(char *path); DESCRIPTION Warning: there are two different functions basename() – see below. The functions dirname() and basename() break a null-terminated pathname string into directory and filename components. In the usual case, dirname() returns the string up to, but not including,…
