Lines Matching defs:cp
79 char *cp, *start;
94 for (cp = start; *cp; cp++) {
95 if (!(*cp >= 'a' && *cp <= 'z') &&
96 !(*cp >= 'A' && *cp <= 'Z') &&
97 !(*cp >= '0' && *cp <= '9') &&
98 !(*cp == '_'))
209 char *cp, *ptr;
218 cp = strchr(line, '\n');
219 if (cp)
220 *cp = 0;
221 cp = strchr(line, '#');
222 if (cp)
223 *cp = 0;
227 for (cp = line + strlen(line) - 1; cp >= line; cp--) {
228 if (*cp == ' ' || *cp == '\t')
229 *cp = 0;
233 cp = line;
234 while (*cp && isspace(*cp))
235 cp++;
236 ptr = cp;
250 for (cp = ptr; *cp; cp++)
251 if (isspace(*cp))
253 *cp = 0;
254 for (cp++; *cp; cp++)
255 if (!isspace(*cp))
258 printf("Substitute: '%s' for '%s'\n", ptr, cp ? cp : "<NULL>");
260 add_subst(ptr, cp);