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