Lines Matching refs:cp
34 extern u_int32_t inet_network(const char *cp);
61 register char *cp, **q; in getnetent() local
71 cp = any(p, "#\n"); in getnetent()
72 if (cp == NULL) in getnetent()
74 *cp = '\0'; in getnetent()
76 cp = any(p, " \t"); in getnetent()
77 if (cp == NULL) in getnetent()
79 *cp++ = '\0'; in getnetent()
80 while (*cp == ' ' || *cp == '\t') in getnetent()
81 cp++; in getnetent()
82 p = any(cp, " \t"); in getnetent()
85 net.n_net = inet_network(cp); in getnetent()
89 cp = p; in getnetent()
90 while (cp && *cp) { in getnetent()
91 if (*cp == ' ' || *cp == '\t') { in getnetent()
92 cp++; in getnetent()
96 *q++ = cp; in getnetent()
97 cp = any(cp, " \t"); in getnetent()
98 if (cp != NULL) in getnetent()
99 *cp++ = '\0'; in getnetent()
106 any(cp, match) in any() argument
107 register char *cp; in any()
112 while (c = *cp) {
115 return (cp);
116 cp++;