check_prefix
static int check_prefix(char **namep, char **dirp, char **compp);
if (check_prefix(namep, dirp, component) != 0) {