NAME 

dirname, basename - Parse pathname components

SYNOPSIS 

#include <libgen.h>

char *dirname(char *path);

char *basename(char *path);