Lines Matching refs:full
56 * Return a pointer to the trailing suffix of full that follows the prefix
57 * given by pref. If pref isn't a prefix of full, return NULL. Apply
62 pathsuffix(char *full, char *pref)
66 if (full == NULL || pref == NULL)
70 if (strncmp(pref, full, preflen) != 0)
74 * pref is a substring of full. To be a subpath, it cannot cover a
75 * partial component of full. The last clause of the test handles the
78 if (full[preflen] != '\0' && full[preflen] != '/' && preflen > 1)
81 if (preflen == 1 && full[0] == '/')
82 return (full);
84 return (full + preflen);
89 * of the path named by full.
94 subpath(char *full, char *sub)
96 return (pathsuffix(full, sub) == NULL);