Lines Matching defs:cp
59 #define end(cp) (strchr((cp), '\0'))
489 char * cp;
491 cp = ecpyalloc(_("warning: "));
492 cp = ecatalloc(cp, string);
493 error(cp);
494 ifree(cp);
944 register char * cp;
966 cp = strchr(buf, '\n');
967 if (cp == NULL) {
971 *cp = '\0';
1179 register char * cp;
1208 if ((cp = strchr(fields[i_format], '%')) != 0) {
1209 if (*++cp != 's' || strchr(cp, '%') != 0) {
1259 register const char * cp;
1271 cp = fields[LP_YEAR];
1272 if (sscanf(cp, scheck(cp, "%d"), &year) != 1) {
1306 cp = fields[LP_DAY];
1307 if (sscanf(cp, scheck(cp, "%d"), &day) != 1 ||
1327 cp = fields[LP_CORR];
1332 if (strcmp(cp, "") == 0) { /* infile() turns "-" into "" */
1335 } else if (strcmp(cp, "--") == 0) {
1338 } else if (strcmp(cp, "+") == 0) {
1341 } else if (strcmp(cp, "++") == 0) {
1397 register const char * cp;
1436 cp = loyearp;
1437 lp = byword(cp, begin_years);
1451 } else if (sscanf(cp, scheck(cp, "%d"), &rp->r_loyear) != 1) {
1455 cp = hiyearp;
1456 lp = byword(cp, end_years);
1473 } else if (sscanf(cp, scheck(cp, "%d"), &rp->r_hiyear) != 1) {
1882 register char * cp;
1901 for (cp = abbr; *cp != '\0'; ++cp)
1902 if (strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZ", *cp) == NULL &&
1903 strchr("abcdefghijklmnopqrstuvwxyz", *cp) == NULL)
1906 if (len > 0 && *cp == '\0')
2698 getfields(cp)
2699 register char * cp;
2705 if (cp == NULL)
2708 emalloc((int) ((strlen(cp) + 1) * sizeof *array));
2711 while (isascii((unsigned char) *cp) &&
2712 isspace((unsigned char) *cp))
2713 ++cp;
2714 if (*cp == '\0' || *cp == '#')
2716 cp;
2718 if ((*dp = *cp++) != '"')
2720 else while ((*dp = *cp++) != '"')
2729 } while (*cp != '\0' && *cp != '#' &&
2730 (!isascii(*cp) || !isspace((unsigned char) *cp)));
2731 if (isascii(*cp) && isspace((unsigned char) *cp))
2732 ++cp;
2868 register const char * cp;
2875 cp = string;
2877 while (isascii((unsigned char) *cp) &&
2878 isalpha((unsigned char) *cp))
2879 ++cp;
2880 if (cp - string == 0)
2882 if (noise && cp - string > 3)
2884 if (cp - string > ZIC_MAX_ABBR_LEN_WO_WARN)
2886 if (wp == NULL && (*cp == '+' || *cp == '-')) {
2887 ++cp;
2888 if (isascii((unsigned char) *cp) &&
2889 isdigit((unsigned char) *cp))
2890 if (*cp++ == '1' &&
2891 *cp >= '0' && *cp <= '4')
2892 ++cp;
2894 if (*cp != '\0')
2919 register char * cp;
2923 cp = name = ecpyalloc(argname);
2924 while ((cp = strchr(cp + 1, '/')) != 0) {
2925 *cp = '\0';
2932 *cp = '/';
2955 *cp = '/';