Lines Matching refs:full
895 * Return a pointer to the trailing suffix of full that follows the prefix
896 * given by pref. If pref isn't a prefix of full, return NULL. Apply
901 pathsuffix(char *full, char *pref)
905 if (full == NULL || pref == NULL)
909 if (strncmp(pref, full, preflen) != 0)
913 * pref is a substring of full. To be a subpath, it cannot cover a
914 * partial component of full. The last clause of the test handles the
917 if (full[preflen] != '\0' && full[preflen] != '/' && preflen > 1)
920 if (preflen == 1 && full[0] == '/')
921 return (full);
923 return (full + preflen);
928 * of the path named by full.
933 subpath(char *full, char *sub)
935 return (pathsuffix(full, sub) == NULL);