Lines Matching defs:s1
53 * The prefix function returns 0 if *s1 is not a prefix
54 * of *s2. If *s1 exactly matches *s2, the negative of
55 * the length is returned. If *s1 is a prefix of *s2,
56 * the length of *s1 is returned.
59 isprefix(char *s1, char *s2)
64 if (*s1 == '\0')
66 os1 = s1;
67 c1 = *s1;
72 c1 = *++s1;
75 return (*s1 ? 0 : (*s2 ? (s1 - os1) : (os1 - s1)));