Home
last modified time | relevance | path

Searched refs:endptr (Results 1 – 25 of 157) sorted by relevance

1234567

/freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptc.c338 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/contrib/processor-trace/libipt/src/
H A Dpt_cpu.c95 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 Dwcstod.c49 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 Dwcstof.c43 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 Dwcstold.c43 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 Dvt_termcolors.c68 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/lib/libutil/
H A Dexpand_number.c40 char *endptr; in expand_number() local
48 umaxval = strtoumax(buf, &endptr, 0); in expand_number()
56 switch (tolower((unsigned char)*endptr)) { in expand_number()
91 endptr++; in expand_number()
92 if (shift != 0 && tolower((unsigned char)*endptr) == 'b') in expand_number()
93 endptr++; in expand_number()
94 if (*endptr != '\0') { in expand_number()
/freebsd/contrib/bmake/
H A D_strtol.h46 _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/mpsutil/
H A Dmps_slot.c50 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/contrib/blocklist/port/
H A D_strtoi.h48 _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 Dstrncat.c19 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/usr.sbin/cpucontrol/
H A Dcpucontrol.c121 char *endptr; in do_cpuid() local
126 level = strtoul(cmdarg, &endptr, 16); in do_cpuid()
127 if (*cmdarg == '\0' || *endptr != '\0') { in do_cpuid()
157 char *cmdarg1, *endptr, *endptr1; in do_cpuid_count() local
165 level = strtoul(cmdarg, &endptr, 16); in do_cpuid_count()
166 if (*cmdarg == '\0' || *endptr == '\0') { in do_cpuid_count()
172 cmdarg1 = strstr(endptr, ","); in do_cpuid_count()
216 char *endptr; in do_msr() local
231 msr = strtoul(cmdarg, &endptr, 16); in do_msr()
232 switch (*endptr) { in do_msr()
[all …]
/freebsd/sbin/camcontrol/
H A Dattrib.c123 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 Dstrto.c44 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 Dlobject.c165 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 Dlobject.c112 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number() argument
116 *endptr = cast(char *, s); /* nothing is valid yet */ in lua_strx2number()
130 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
143 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
153 char *endptr; in luaO_str2d() local
157 *result = lua_strx2number(s, &endptr); in luaO_str2d()
159 *result = lua_str2number(s, &endptr); in luaO_str2d()
160 if (endptr == s) return 0; /* nothing recognized */ in luaO_str2d()
161 while (lisspace(cast_uchar(*endptr))) endptr++; in luaO_str2d()
162 return (endptr == s + len); /* OK if no trailing characters */ in luaO_str2d()
/freebsd/crypto/openssl/test/
H A Dbio_prefix_text.c143 char *endptr; in setup() local
164 amount = strtoul(arg, &endptr, 10); in setup()
165 if (endptr[0] != '\0') { in setup()
191 idx = strtoul(arg, &endptr, 10); in setup()
192 if (endptr[0] != ':') { in setup()
202 indent = strtoul(colon, &endptr, 10); in setup()
203 if (endptr[0] != '\0') { in setup()
229 idx = strtoul(arg, &endptr, 10); in setup()
230 if (endptr[0] != ':') { in setup()
/freebsd/sys/libkern/
H A Dinet_aton.c42 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 Dstrtol.c50 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 Dstrtoll.c50 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 Dstrtoul.c50 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 Dstrtoull.c50 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()
H A Dstrtoumax.c50 strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoumax_l() argument
126 if (endptr != NULL) in strtoumax_l()
127 *endptr = (char *)(any ? s - 1 : nptr); in strtoumax_l()
131 strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoumax() argument
133 return strtoumax_l(nptr, endptr, base, __get_locale()); in strtoumax()
H A Dstrtoimax.c50 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoimax_l() argument
148 if (endptr != NULL) in strtoimax_l()
149 *endptr = (char *)(any ? s - 1 : nptr); in strtoimax_l()
153 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoimax() argument
155 return strtoimax_l(nptr, endptr, base, __get_locale()); in strtoimax()
/freebsd/sbin/ipf/common/
H A Dgenmask.c15 char *endptr = 0L; in genmask() local
42 bits = (int)strtol(msk, &endptr, 0); in genmask()
47 if ((*endptr != '\0') || (bits < 0) || (bits > 128)) in genmask()
52 if (*endptr != '\0' || bits > 32 || bits < 0) in genmask()

1234567