Lines Matching refs:ptr
47 char *ptr, *nptr; in bc_str2num() local
54 ptr = str; in bc_str2num()
58 if ( (*ptr == '+') || (*ptr == '-')) ptr++; /* Sign */ in bc_str2num()
59 while (*ptr == '0') ptr++; /* Skip leading zeros. */ in bc_str2num()
60 while (isdigit((int)*ptr)) ptr++, digits++; /* digits */ in bc_str2num()
61 if (*ptr == '.') ptr++; /* decimal point */ in bc_str2num()
62 while (isdigit((int)*ptr)) ptr++, strscale++; /* digits */ in bc_str2num()
63 if ((*ptr != '\0') || (digits+strscale == 0)) in bc_str2num()
79 ptr = str; in bc_str2num()
80 if (*ptr == '-') in bc_str2num()
83 ptr++; in bc_str2num()
88 if (*ptr == '+') ptr++; in bc_str2num()
90 while (*ptr == '0') ptr++; /* Skip leading zeros. */ in bc_str2num()
98 *nptr++ = CH_VAL(*ptr++); in bc_str2num()
104 ptr++; /* skip the decimal point! */ in bc_str2num()
106 *nptr++ = CH_VAL(*ptr++); in bc_str2num()