Lines Matching defs:cp
359 static int get_addr_ipv4(__u8 *ap, const char *cp)
367 n = strtoul(cp, &endp, 0);
371 if (endp == cp) /* no digits */
381 cp = endp + 1;
387 int get_addr64(__u64 *ap, const char *cp)
400 n = strtoul(cp, &endp, 16);
404 if (endp == cp) /* no digits */
414 cp = endp + 1;
934 char *cp;
940 cp = strchr(*linep, '#');
941 if (cp)
942 *cp = '\0';
944 while ((cp = strstr(*linep, "\\\n")) != NULL) {
955 *cp = 0;
957 cp = strchr(line1, '#');
958 if (cp)
959 *cp = '\0';
979 char *cp;
982 for (cp = line + strspn(line, ws); *cp; cp += strspn(cp, ws)) {
989 if (*cp == '\'' || *cp == '"') {
990 char quote = *cp++;
992 argv[argc++] = cp;
994 cp = strchr(cp, quote);
995 if (cp == NULL) {
999 *cp++ = 0;
1003 argv[argc++] = cp;
1005 cp += strcspn(cp, ws);
1006 *cp++ = 0;