Home
last modified time | relevance | path

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

1234567

/freebsd-14.2/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptc.c363 ptr = endptr + 1; in snmp_date2asn_oid()
484 return (endptr); in snmp_date2asn_oid()
497 char *endptr; in parse_dateandtime() local
646 return (endptr); in snmp_addr2asn_oid()
652 char *endptr; in parse_physaddress() local
775 return (endptr); in snmp_ntp_ts2asn_oid()
781 char *endptr; in parse_ntp_ts() local
944 char *endptr; in parse_bridge_id() local
1071 char *endptr; in parse_bport_id() local
1222 char *endptr; in snmp_bits2oct() local
[all …]
/freebsd-14.2/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-14.2/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-14.2/sys/dev/vt/colors/
H A Dvt_termcolors.c69 char *endptr; in vt_parse_rgb_triplet() local
78 if (*endptr != '\0') in vt_parse_rgb_triplet()
89 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet()
90 if (ptr == endptr) in vt_parse_rgb_triplet()
95 ptr = endptr; in vt_parse_rgb_triplet()
101 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet()
102 if (ptr == endptr) in vt_parse_rgb_triplet()
107 ptr = endptr; in vt_parse_rgb_triplet()
113 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet()
114 if (ptr == endptr) in vt_parse_rgb_triplet()
[all …]
/freebsd-14.2/lib/libutil/
H A Dexpand_number.c41 char *endptr; in expand_number() local
49 umaxval = strtoumax(buf, &endptr, 0); in expand_number()
57 switch (tolower((unsigned char)*endptr)) { in expand_number()
92 endptr++; in expand_number()
93 if (shift != 0 && tolower((unsigned char)*endptr) == 'b') in expand_number()
94 endptr++; in expand_number()
95 if (*endptr != '\0') { in expand_number()
/freebsd-14.2/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-14.2/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-14.2/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-14.2/lib/libc/amd64/string/
H A Dstrncat.c17 char *endptr; in strncat() local
20 endptr = __memccpy(dest + len, src, '\0', n); in strncat()
23 if (endptr == NULL) in strncat()
24 endptr = dest + len + n + 1; in strncat()
26 endptr[-1] = '\0'; in strncat()
/freebsd-14.2/usr.sbin/cpucontrol/
H A Dcpucontrol.c121 char *endptr; in do_cpuid() local
157 char *cmdarg1, *endptr, *endptr1; in do_cpuid_count() local
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()
241 endptr++; in do_msr()
245 endptr++; in do_msr()
251 if (*endptr != '=') in do_msr()
254 p = ++endptr; in do_msr()
[all …]
/freebsd-14.2/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-14.2/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()
178 if (*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, 0); in scsiattrib()
256 if (*endptr != '\0') { in scsiattrib()
289 logical_volume = strtol(optarg, &endptr, 0); in scsiattrib()
[all …]
/freebsd-14.2/contrib/lua/src/
H A Dlobject.c173 *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
231 : lua_str2number(s, &endptr); 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()
252 const char *endptr; in l_str2d() local
266 if (endptr != NULL) in l_str2d()
267 endptr = s + (endptr - buff); /* make relative to 's' */ in l_str2d()
[all …]
/freebsd-14.2/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-14.2/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-14.2/sys/libkern/
H A Dinet_aton.c43 char *endptr; in inet_aton() local
57 l = strtoul(c, &endptr, 0); in inet_aton()
59 if (l == ULONG_MAX || (l == 0 && endptr == c)) in inet_aton()
70 if (endptr == c) in inet_aton()
73 c = endptr; in inet_aton()
/freebsd-14.2/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()
/freebsd-14.2/lib/libc/stdlib/
H A Dstrtoull.c53 strtoull_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoull_l() argument
129 if (endptr != NULL) in strtoull_l()
130 *endptr = (char *)(any ? s - 1 : nptr); in strtoull_l()
134 strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoull() argument
136 return strtoull_l(nptr, endptr, base, __get_locale()); in strtoull()
H A Dstrtoumax.c53 strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoumax_l() argument
129 if (endptr != NULL) in strtoumax_l()
130 *endptr = (char *)(any ? s - 1 : nptr); in strtoumax_l()
134 strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoumax() argument
136 return strtoumax_l(nptr, endptr, base, __get_locale()); in strtoumax()
H A Dstrtoul.c53 strtoul_l(const char * __restrict nptr, char ** __restrict endptr, int base, locale_t locale) in strtoul_l() argument
128 if (endptr != NULL) in strtoul_l()
129 *endptr = (char *)(any ? s - 1 : nptr); in strtoul_l()
133 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoul() argument
135 return strtoul_l(nptr, endptr, base, __get_locale()); in strtoul()
H A Dstrtoimax.c53 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoimax_l() argument
151 if (endptr != NULL) in strtoimax_l()
152 *endptr = (char *)(any ? s - 1 : nptr); in strtoimax_l()
156 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoimax() argument
158 return strtoimax_l(nptr, endptr, base, __get_locale()); in strtoimax()
H A Dstrtoll.c53 strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoll_l() argument
152 if (endptr != NULL) in strtoll_l()
153 *endptr = (char *)(any ? s - 1 : nptr); in strtoll_l()
157 strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoll() argument
159 return strtoll_l(nptr, endptr, base, __get_locale()); in strtoll()
H A Dstrtol.c53 strtol_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtol_l() argument
150 if (endptr != NULL) in strtol_l()
151 *endptr = (char *)(any ? s - 1 : nptr); in strtol_l()
155 strtol(const char * __restrict nptr, char ** __restrict endptr, int base) in strtol() argument
157 return strtol_l(nptr, endptr, base, __get_locale()); in strtol()

1234567