Home | History | Annotate | Download | only in util

Lines Matching defs:cp

82 	char *cp, *start;
97 for (cp = start; *cp; cp++) {
98 if (!(*cp >= 'a' && *cp <= 'z') &&
99 !(*cp >= 'A' && *cp <= 'Z') &&
100 !(*cp >= '0' && *cp <= '9') &&
101 !(*cp == '_'))
212 char *cp, *ptr;
221 cp = strchr(line, '\n');
222 if (cp)
223 *cp = 0;
224 cp = strchr(line, '#');
225 if (cp)
226 *cp = 0;
230 for (cp = line + strlen(line) - 1; cp >= line; cp--) {
231 if (*cp == ' ' || *cp == '\t')
232 *cp = 0;
236 cp = line;
237 while (*cp && isspace(*cp))
238 cp++;
239 ptr = cp;
253 for (cp = ptr; *cp; cp++)
254 if (isspace(*cp))
256 *cp = 0;
257 for (cp++; *cp; cp++)
258 if (!isspace(*cp))
261 printf("Substitute: '%s' for '%s'\n", ptr, cp ? cp : "<NULL>");
263 add_subst(ptr, cp);