| /freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/ |
| H A D | bsnmptc.c | 338 char *endptr, *ptr; in snmp_date2asn_oid() local 350 v = strtoul(ptr, &endptr, 10); in snmp_date2asn_oid() 355 if (*endptr != '-') in snmp_date2asn_oid() 363 ptr = endptr + 1; in snmp_date2asn_oid() 366 v = strtoul(ptr, &endptr, 10); in snmp_date2asn_oid() 371 if (*endptr != '-') in snmp_date2asn_oid() 377 ptr = endptr + 1; in snmp_date2asn_oid() 380 v = strtoul(ptr, &endptr, 10); in snmp_date2asn_oid() 385 if (*endptr != '-') in snmp_date2asn_oid() 391 ptr = endptr + 1; in snmp_date2asn_oid() [all …]
|
| /freebsd/lib/libutil/ |
| H A D | expand_number.c | 43 char *endptr; in expand_impl() local 74 number = strtoumax(buf, &endptr, 0); in expand_impl() 79 switch (tolower((unsigned char)*endptr)) { in expand_impl() 82 endptr++; in expand_impl() 86 endptr++; in expand_impl() 90 endptr++; in expand_impl() 94 endptr++; in expand_impl() 98 endptr++; in expand_impl() 102 endptr++; in expand_impl() 112 if (tolower((unsigned char)*endptr) == 'b') in expand_impl() [all …]
|
| /freebsd/contrib/processor-trace/libipt/src/ |
| H A D | pt_cpu.c | 95 char *endptr; in pt_cpu_parse() local 101 family = strtol(s, &endptr, 0); in pt_cpu_parse() 102 if (s == endptr || *endptr == '\0' || *endptr != sep) in pt_cpu_parse() 109 s = endptr + 1; in pt_cpu_parse() 111 model = strtol(s, &endptr, 0); in pt_cpu_parse() 112 if (s == endptr || (*endptr != '\0' && *endptr != sep)) in pt_cpu_parse() 118 if (*endptr == '\0') in pt_cpu_parse() 123 s = endptr + 1; in pt_cpu_parse() 125 stepping = strtol(s, &endptr, 0); in pt_cpu_parse() 126 if (*endptr != '\0') in pt_cpu_parse()
|
| /freebsd/lib/libc/locale/ |
| H A D | wcstod.c | 49 wcstod_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstod_l() argument 80 if (endptr != NULL) in wcstod_l() 81 *endptr = (wchar_t *)nptr; in wcstod_l() 85 if (endptr != NULL) in wcstod_l() 86 *endptr = (wchar_t *)nptr; in wcstod_l() 101 if (endptr != NULL) { in wcstod_l() 102 *endptr = (wchar_t *)nptr + (end - buf); in wcstod_l() 104 *endptr += spaces; in wcstod_l() 112 wcstod(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstod() argument 114 return wcstod_l(nptr, endptr, __get_locale()); in wcstod()
|
| H A D | wcstof.c | 43 wcstof_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstof_l() argument 64 if (endptr != NULL) in wcstof_l() 65 *endptr = (wchar_t *)nptr; in wcstof_l() 69 if (endptr != NULL) in wcstof_l() 70 *endptr = (wchar_t *)nptr; in wcstof_l() 78 if (endptr != NULL) { in wcstof_l() 79 *endptr = (wchar_t *)nptr + (end - buf); in wcstof_l() 81 *endptr += spaces; in wcstof_l() 89 wcstof(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstof() argument 91 return wcstof_l(nptr, endptr, __get_locale()); in wcstof()
|
| H A D | wcstold.c | 43 wcstold_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstold_l() argument 64 if (endptr != NULL) in wcstold_l() 65 *endptr = (wchar_t *)nptr; in wcstold_l() 69 if (endptr != NULL) in wcstold_l() 70 *endptr = (wchar_t *)nptr; in wcstold_l() 78 if (endptr != NULL) { in wcstold_l() 79 *endptr = (wchar_t *)nptr + (end - buf); in wcstold_l() 81 *endptr += spaces; in wcstold_l() 89 wcstold(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstold() argument 91 return wcstold_l(nptr, endptr, __get_locale()); in wcstold()
|
| /freebsd/sys/dev/vt/colors/ |
| H A D | vt_termcolors.c | 68 char *endptr; in vt_parse_rgb_triplet() local 76 v = strtoul(ptr + 1, &endptr, 16); in vt_parse_rgb_triplet() 77 if (*endptr != '\0') in vt_parse_rgb_triplet() 88 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet() 89 if (ptr == endptr) in vt_parse_rgb_triplet() 94 ptr = endptr; in vt_parse_rgb_triplet() 100 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet() 101 if (ptr == endptr) in vt_parse_rgb_triplet() 106 ptr = endptr; in vt_parse_rgb_triplet() 112 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet() [all …]
|
| /freebsd/usr.bin/sockstat/ |
| H A D | sockstat.c | 48 char *endptr = NULL; in parse_ports() local 51 port = strtol(p, &endptr, 10); in parse_ports() 57 switch (*endptr) { in parse_ports() 59 p = endptr + 1; in parse_ports() 60 end = strtol(p, &endptr, 10); in parse_ports() 63 p = endptr + 1; in parse_ports() 66 p = endptr; in parse_ports()
|
| /freebsd/contrib/bmake/ |
| H A D | _strtol.h | 46 _FUNCNAME(const char *nptr, char **endptr, int base) in _FUNCNAME() argument 54 INT_FUNCNAME(_int_, _FUNCNAME, _l)(const char *nptr, char **endptr, in _FUNCNAME() 70 if (endptr != NULL) in _FUNCNAME() 72 *endptr = __UNCONST(nptr); in _FUNCNAME() 194 if (endptr != NULL) in _FUNCNAME() 196 *endptr = __UNCONST(any ? s - 1 : nptr); in _FUNCNAME() 203 _FUNCNAME(const char *nptr, char **endptr, int base) in _FUNCNAME() argument 205 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, _current_locale()); in _FUNCNAME() 209 INT_FUNCNAME(, _FUNCNAME, _l)(const char *nptr, char **endptr, int base, locale_t loc) 211 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, loc);
|
| /freebsd/usr.sbin/moused/moused/ |
| H A D | util.h | 230 char *endptr; in safe_atoi_base() local 236 v = strtol(str, &endptr, base); in safe_atoi_base() 239 if (str == endptr) in safe_atoi_base() 241 if (*str != '\0' && *endptr != '\0') in safe_atoi_base() 263 char *endptr; in safe_atou_base() local 269 v = strtoul(str, &endptr, base); in safe_atou_base() 272 if (str == endptr) in safe_atou_base() 274 if (*str != '\0' && *endptr != '\0') in safe_atou_base() 296 char *endptr; in safe_atod() local 324 v = strtod_l(str, &endptr, c_locale); in safe_atod() [all …]
|
| /freebsd/usr.sbin/mpsutil/ |
| H A D | mps_slot.c | 50 char *endptr; in slot_set() local 71 x = strtol(argv[2], &endptr, 0); in slot_set() 72 if (*endptr != '\0' || errno != 0 || x < 0 || x > UINT16_MAX) { in slot_set() 79 x = strtol(argv[3], &endptr, 0); in slot_set() 80 if (*endptr != '\0' || errno != 0 || x < 0 || x > UINT16_MAX) { in slot_set() 87 ux = strtoul(argv[4], &endptr, 0); in slot_set() 88 if (*endptr != '\0' || errno != 0 || ux > UINT32_MAX) { in slot_set()
|
| /freebsd/usr.sbin/cpucontrol/ |
| H A D | cpucontrol.c | 118 strtouint32(const char *str, char **endptr, int base) in strtouint32() argument 123 val = strtoumax(str, endptr, base); in strtouint32() 138 char *endptr; in do_cpuid() local 143 level = strtouint32(cmdarg, &endptr, 16); in do_cpuid() 144 if (*cmdarg == '\0' || *endptr != '\0') { in do_cpuid() 174 char *cmdarg1, *endptr, *endptr1; in do_cpuid_count() local 182 level = strtouint32(cmdarg, &endptr, 16); in do_cpuid_count() 183 if (*cmdarg == '\0' || *endptr == '\0') { in do_cpuid_count() 189 cmdarg1 = strstr(endptr, ","); in do_cpuid_count() 233 char *endptr; in do_msr() local [all …]
|
| /freebsd/contrib/blocklist/port/ |
| H A D | _strtoi.h | 48 _FUNCNAME(const char * __restrict nptr, char ** __restrict endptr, int base, in _FUNCNAME() argument 58 if (endptr == NULL) in _FUNCNAME() 59 endptr = &ep; in _FUNCNAME() 67 im = __WRAPPED(nptr, endptr, base); in _FUNCNAME() 74 if (nptr == *endptr) in _FUNCNAME() 77 else if (**endptr != '\0') in _FUNCNAME()
|
| /freebsd/lib/libc/amd64/string/ |
| H A D | strncat.c | 19 char *endptr; in strncat() local 22 endptr = __memccpy(dest + len, src, '\0', n); in strncat() 25 if (endptr == NULL) in strncat() 26 endptr = dest + len + n + 1; in strncat() 28 endptr[-1] = '\0'; in strncat()
|
| /freebsd/lib/libc/aarch64/string/ |
| H A D | strncat.c | 19 char *endptr; in strncat() local 22 endptr = __memccpy(dest + len, src, '\0', n); in strncat() 25 if (endptr == NULL) in strncat() 26 endptr = dest + len + n + 1; in strncat() 28 endptr[-1] = '\0'; in strncat()
|
| /freebsd/sbin/camcontrol/ |
| H A D | attrib.c | 123 char *endptr; in scsiattrib() local 164 attr_num = strtol(optarg, &endptr, 0); in scsiattrib() 165 if (*endptr != '\0') { in scsiattrib() 177 element_address = strtol(optarg, &endptr, 0); in scsiattrib() 178 if (*endptr != '\0') { in scsiattrib() 192 output_format = strtoul(optarg, &endptr, 0); in scsiattrib() 193 if (*endptr != '\0') { in scsiattrib() 226 partition = strtol(optarg, &endptr, 0); in scsiattrib() 227 if (*endptr != '\0') { in scsiattrib() 255 start_attr = strtol(optarg, &endptr, in scsiattrib() [all...] |
| /freebsd/contrib/sendmail/libsm/ |
| H A D | strto.c | 44 sm_strtoll(nptr, endptr, base) 46 char **endptr; variable 161 if (endptr != NULL) 162 *endptr = (char *) (any ? s - 1 : nptr); 185 sm_strtoull(nptr, endptr, base) in sm_strtoull() argument 187 char **endptr; 251 if (endptr != NULL) 252 *endptr = (char *) (any ? s - 1 : nptr);
|
| /freebsd/contrib/lua/src/ |
| H A D | lobject.c | 165 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number() argument 173 *endptr = cast_charp(s); /* nothing is valid yet */ in lua_strx2number() 195 *endptr = cast_charp(s); /* valid up to here */ in lua_strx2number() 208 *endptr = cast_charp(s); /* valid up to here */ in lua_strx2number() 229 char *endptr; in l_str2dloc() local 230 *result = (mode == 'x') ? lua_strx2number(s, &endptr) /* try to convert */ in l_str2dloc() 231 : lua_str2number(s, &endptr); in l_str2dloc() 232 if (endptr == s) return NULL; /* nothing recognized? */ in l_str2dloc() 233 while (lisspace(cast_uchar(*endptr))) endptr++; /* skip trailing spaces */ in l_str2dloc() 234 return (*endptr == '\0') ? endptr : NULL; /* OK iff no trailing chars */ in l_str2dloc() [all …]
|
| /freebsd/sys/contrib/openzfs/module/lua/ |
| H A D | lobject.c | 113 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number() argument 117 *endptr = cast(char *, s); /* nothing is valid yet */ in lua_strx2number() 131 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number() 144 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number() 154 char *endptr; in luaO_str2d() local 158 *result = lua_strx2number(s, &endptr); in luaO_str2d() 160 *result = lua_str2number(s, &endptr); in luaO_str2d() 161 if (endptr == s) return 0; /* nothing recognized */ in luaO_str2d() 162 while (lisspace(cast_uchar(*endptr))) endptr++; in luaO_str2d() 163 return (endptr == s + len); /* OK if no trailing characters */ in luaO_str2d()
|
| /freebsd/crypto/openssl/test/ |
| H A D | bio_prefix_text.c | 145 char *endptr; in setup() local 165 amount = strtoul(arg, &endptr, 10); in setup() 166 if (endptr[0] != '\0') { in setup() 192 idx = strtoul(arg, &endptr, 10); in setup() 193 if (endptr[0] != ':') { in setup() 203 indent = strtoul(colon, &endptr, 10); in setup() 204 if (endptr[0] != '\0') { in setup() 230 idx = strtoul(arg, &endptr, 10); in setup() 231 if (endptr[0] != ':') { in setup()
|
| /freebsd/sys/libkern/ |
| H A D | inet_aton.c | 42 char *endptr; in inet_aton() local 56 l = strtoul(c, &endptr, 0); in inet_aton() 58 if (l == ULONG_MAX || (l == 0 && endptr == c)) in inet_aton() 69 if (endptr == c) in inet_aton() 72 c = endptr; in inet_aton()
|
| /freebsd/lib/libc/stdlib/ |
| H A D | strtol.c | 50 strtol_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtol_l() argument 147 if (endptr != NULL) in strtol_l() 148 *endptr = (char *)(any ? s - 1 : nptr); in strtol_l() 152 strtol(const char * __restrict nptr, char ** __restrict endptr, int base) in strtol() argument 154 return strtol_l(nptr, endptr, base, __get_locale()); in strtol()
|
| H A D | strtoll.c | 50 strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoll_l() argument 149 if (endptr != NULL) in strtoll_l() 150 *endptr = (char *)(any ? s - 1 : nptr); in strtoll_l() 154 strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoll() argument 156 return strtoll_l(nptr, endptr, base, __get_locale()); in strtoll()
|
| H A D | strtoul.c | 50 strtoul_l(const char * __restrict nptr, char ** __restrict endptr, int base, locale_t locale) in strtoul_l() argument 125 if (endptr != NULL) in strtoul_l() 126 *endptr = (char *)(any ? s - 1 : nptr); in strtoul_l() 130 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoul() argument 132 return strtoul_l(nptr, endptr, base, __get_locale()); in strtoul()
|
| H A D | strtoull.c | 50 strtoull_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoull_l() argument 126 if (endptr != NULL) in strtoull_l() 127 *endptr = (char *)(any ? s - 1 : nptr); in strtoull_l() 131 strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoull() argument 133 return strtoull_l(nptr, endptr, base, __get_locale()); in strtoull()
|