Lines Matching refs:endptr
995 char *endptr = option_data; in decode_number() local
996 while (*endptr != 0 && isspace((unsigned char)(*endptr))) endptr++; in decode_number()
997 while (isdigit((unsigned char)(*endptr))) in decode_number()
998 n = n * 10 + (int)(*endptr++ - '0'); in decode_number()
999 if (toupper(*endptr) == 'K') in decode_number()
1002 endptr++; in decode_number()
1004 else if (toupper(*endptr) == 'M') in decode_number()
1007 endptr++; in decode_number()
1010 if (*endptr != 0) /* Error */ in decode_number()
1119 end_of_line(char *p, char *endptr, int *lenptr) in end_of_line() argument
1125 while (p < endptr && *p != '\n') p++; in end_of_line()
1126 if (p < endptr) in end_of_line()
1132 return endptr; in end_of_line()
1135 while (p < endptr && *p != '\r') p++; in end_of_line()
1136 if (p < endptr) in end_of_line()
1142 return endptr; in end_of_line()
1147 while (p < endptr && *p != '\r') p++; in end_of_line()
1148 if (++p >= endptr) in end_of_line()
1151 return endptr; in end_of_line()
1162 while (p < endptr) in end_of_line()
1189 if (p < endptr && *p == '\n') in end_of_line()
1203 return endptr; in end_of_line()
1206 while (p < endptr) in end_of_line()
1235 if (p < endptr && *p == '\n') in end_of_line()
1260 return endptr; in end_of_line()
1390 do_after_lines(int lastmatchnumber, char *lastmatchrestart, char *endptr, in do_after_lines() argument
1396 while (lastmatchrestart < endptr && count++ < after_context) in do_after_lines()
1402 pp = end_of_line(pp, endptr, &ellength); in do_after_lines()
1512 char *endptr; in pcregrep() local
1562 endptr = main_buffer + bufflength; in pcregrep()
1580 while (ptr < endptr) in pcregrep()
1602 t = end_of_line(t, endptr, &endlinelength); in pcregrep()
1604 length = multiline? (size_t)(endptr - ptr) : linelength; in pcregrep()
1640 endptr = ptr; in pcregrep()
1641 strcpy(endptr, jfriedl_prefix); endptr += strlen(jfriedl_prefix); in pcregrep()
1643 strncpy(endptr, orig, length); in pcregrep()
1644 endptr += length; in pcregrep()
1646 strcpy(endptr, jfriedl_postfix); endptr += strlen(jfriedl_postfix); in pcregrep()
1849 pp = end_of_line(pp, endptr, &ellength); in pcregrep()
1889 pp = end_of_line(pp, endptr, &ellength); in pcregrep()
1916 t = end_of_line(t, endptr, &endlinelength); in pcregrep()
2001 t = end_of_line(t, endptr, &ellength); in pcregrep()
2004 endmatch = end_of_line(endmatch, endptr, &ellength); in pcregrep()
2023 endptr += add; in pcregrep()
2037 do_after_lines(lastmatchnumber, lastmatchrestart, endptr, printname); in pcregrep()
2064 endptr = main_buffer + bufflength; in pcregrep()
2077 do_after_lines(lastmatchnumber, lastmatchrestart, endptr, printname); in pcregrep()