Home
last modified time | relevance | path

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

1234567

/freebsd-12.1/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptc.c365 ptr = endptr + 1; in snmp_date2asn_oid()
486 return (endptr); in snmp_date2asn_oid()
499 char *endptr; in parse_dateandtime() local
648 return (endptr); in snmp_addr2asn_oid()
654 char *endptr; in parse_physaddress() local
777 return (endptr); in snmp_ntp_ts2asn_oid()
783 char *endptr; in parse_ntp_ts() local
946 char *endptr; in parse_bridge_id() local
1073 char *endptr; in parse_bport_id() local
1224 char *endptr; in snmp_bits2oct() local
[all …]
/freebsd-12.1/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-12.1/sys/dev/vt/colors/
H A Dvt_termcolors.c71 char *endptr; in vt_parse_rgb_triplet() local
80 if (*endptr != '\0') in vt_parse_rgb_triplet()
91 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet()
92 if (ptr == endptr) in vt_parse_rgb_triplet()
97 ptr = endptr; in vt_parse_rgb_triplet()
103 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet()
104 if (ptr == endptr) in vt_parse_rgb_triplet()
109 ptr = endptr; in vt_parse_rgb_triplet()
115 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet()
116 if (ptr == endptr) in vt_parse_rgb_triplet()
[all …]
/freebsd-12.1/lib/libc/locale/
H A Dwcstod.c52 wcstod_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstod_l() argument
83 if (endptr != NULL) in wcstod_l()
84 *endptr = (wchar_t *)nptr; in wcstod_l()
88 if (endptr != NULL) in wcstod_l()
89 *endptr = (wchar_t *)nptr; in wcstod_l()
104 if (endptr != NULL) { in wcstod_l()
105 *endptr = (wchar_t *)nptr + (end - buf); in wcstod_l()
107 *endptr += spaces; in wcstod_l()
115 wcstod(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstod() argument
117 return wcstod_l(nptr, endptr, __get_locale()); in wcstod()
H A Dwcstof.c46 wcstof_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstof_l() argument
67 if (endptr != NULL) in wcstof_l()
68 *endptr = (wchar_t *)nptr; in wcstof_l()
72 if (endptr != NULL) in wcstof_l()
73 *endptr = (wchar_t *)nptr; in wcstof_l()
81 if (endptr != NULL) { in wcstof_l()
82 *endptr = (wchar_t *)nptr + (end - buf); in wcstof_l()
84 *endptr += spaces; in wcstof_l()
92 wcstof(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstof() argument
94 return wcstof_l(nptr, endptr, __get_locale()); in wcstof()
H A Dwcstold.c46 wcstold_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstold_l() argument
67 if (endptr != NULL) in wcstold_l()
68 *endptr = (wchar_t *)nptr; in wcstold_l()
72 if (endptr != NULL) in wcstold_l()
73 *endptr = (wchar_t *)nptr; in wcstold_l()
81 if (endptr != NULL) { in wcstold_l()
82 *endptr = (wchar_t *)nptr + (end - buf); in wcstold_l()
84 *endptr += spaces; in wcstold_l()
92 wcstold(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstold() argument
94 return wcstold_l(nptr, endptr, __get_locale()); in wcstold()
H A Dwcstoul.c51 wcstoul_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstoul_l() argument
122 if (endptr != NULL) in wcstoul_l()
123 *endptr = (wchar_t *)(any ? s - 1 : nptr); in wcstoul_l()
127 wcstoul(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) in wcstoul() argument
129 return wcstoul_l(nptr, endptr, base, __get_locale()); in wcstoul()
H A Dwcstoull.c57 wcstoull_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstoull_l() argument
128 if (endptr != NULL) in wcstoull_l()
129 *endptr = (wchar_t *)(any ? s - 1 : nptr); in wcstoull_l()
133 wcstoull(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstoull() argument
136 return wcstoull_l(nptr, endptr, base, __get_locale()); in wcstoull()
/freebsd-12.1/contrib/amd/libamu/
H A Dmtab.c171 char *eq, *endptr; in hasmntvalerr() local
187 endptr = NULL; in hasmntvalerr()
188 i = strtol(eq, &endptr, 0); /* hex and octal allowed ;-) */ in hasmntvalerr()
189 if (!endptr || in hasmntvalerr()
190 (endptr != eq && (*endptr == ',' || *endptr == '\0'))) { in hasmntvalerr()
230 char *endptr = strchr(eq, ','); in hasmntstr() local
233 if (!endptr) in hasmntstr()
237 int len = endptr - eq; in hasmntstr()
/freebsd-12.1/contrib/lua/src/
H A Dlobject.c201 *endptr = cast(char *, s); /* nothing is valid yet */ in lua_strx2number()
223 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
236 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
252 char *endptr; in l_str2dloc() local
254 : lua_str2number(s, &endptr); in l_str2dloc()
256 while (lisspace(cast_uchar(*endptr))) endptr++; /* skip trailing spaces */ in l_str2dloc()
257 return (*endptr == '\0') ? endptr : NULL; /* OK if no trailing characters */ in l_str2dloc()
275 const char *endptr; in l_str2d() local
289 if (endptr != NULL) in l_str2d()
290 endptr = s + (endptr - buff); /* make relative to 's' */ in l_str2d()
[all …]
/freebsd-12.1/contrib/blacklist/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-12.1/usr.sbin/cpucontrol/
H A Dcpucontrol.c122 char *endptr; in do_cpuid() local
158 char *cmdarg1, *endptr, *endptr1; in do_cpuid_count() local
173 cmdarg1 = strstr(endptr, ","); in do_cpuid_count()
217 char *endptr; in do_msr() local
232 msr = strtoul(cmdarg, &endptr, 16); in do_msr()
233 switch (*endptr) { in do_msr()
242 endptr++; in do_msr()
246 endptr++; in do_msr()
252 if (*endptr != '=') in do_msr()
255 p = ++endptr; in do_msr()
[all …]
/freebsd-12.1/sbin/camcontrol/
H A Dattrib.c125 char *endptr; in scsiattrib() local
168 attr_num = strtol(optarg, &endptr, 0); in scsiattrib()
169 if (*endptr != '\0') { in scsiattrib()
182 if (*endptr != '\0') { in scsiattrib()
197 if (*endptr != '\0') { in scsiattrib()
230 partition = strtol(optarg, &endptr, 0); in scsiattrib()
231 if (*endptr != '\0') { in scsiattrib()
259 start_attr = strtol(optarg, &endptr, 0); in scsiattrib()
260 if (*endptr != '\0') { in scsiattrib()
293 logical_volume = strtol(optarg, &endptr, 0); in scsiattrib()
[all …]
/freebsd-12.1/contrib/sendmail/libsm/
H A Dstrto.c44 sm_strtoll(nptr, endptr, base)
46 char **endptr; variable
161 if (endptr != 0)
162 *endptr = (char *) (any ? s - 1 : nptr);
185 sm_strtoull(nptr, endptr, base) in sm_strtoull() argument
187 char **endptr;
251 if (endptr != 0)
252 *endptr = (char *) (any ? s - 1 : nptr);
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlobject.c114 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number() argument
118 *endptr = cast(char *, s); /* nothing is valid yet */ in lua_strx2number()
132 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
145 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
155 char *endptr; in luaO_str2d() local
159 *result = lua_strx2number(s, &endptr); in luaO_str2d()
161 *result = lua_str2number(s, &endptr); in luaO_str2d()
162 if (endptr == s) return 0; /* nothing recognized */ in luaO_str2d()
163 while (lisspace(cast_uchar(*endptr))) endptr++; in luaO_str2d()
164 return (endptr == s + len); /* OK if no trailing characters */ in luaO_str2d()
/freebsd-12.1/sys/libkern/
H A Dinet_aton.c45 char *endptr; in inet_aton() local
59 l = strtoul(c, &endptr, 0); in inet_aton()
61 if (l == ULONG_MAX || (l == 0 && endptr == c)) in inet_aton()
72 if (endptr == c) in inet_aton()
75 c = endptr; in inet_aton()
/freebsd-12.1/contrib/gcclibs/libcpp/
H A Dmakeucnid.c77 char *endptr; in read_ucnid() local
78 start = strtoul (l, &endptr, 16); in read_ucnid()
79 if (endptr == l || (*endptr != '-' && ! isspace (*endptr))) in read_ucnid()
81 l = endptr; in read_ucnid()
86 end = strtoul (l + 1, &endptr, 16); in read_ucnid()
89 l = endptr; in read_ucnid()
/freebsd-12.1/lib/libc/stdlib/
H A Dstrtoumax.c56 strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoumax_l() argument
125 if (endptr != NULL) in strtoumax_l()
126 *endptr = (char *)(any ? s - 1 : nptr); in strtoumax_l()
130 strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoumax() argument
132 return strtoumax_l(nptr, endptr, base, __get_locale()); in strtoumax()
H A Dstrtoul.c56 strtoul_l(const char * __restrict nptr, char ** __restrict endptr, int base, locale_t locale) in strtoul_l() argument
124 if (endptr != NULL) in strtoul_l()
125 *endptr = (char *)(any ? s - 1 : nptr); in strtoul_l()
129 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoul() argument
131 return strtoul_l(nptr, endptr, base, __get_locale()); in strtoul()
H A Dstrtoull.c56 strtoull_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoull_l() argument
125 if (endptr != NULL) in strtoull_l()
126 *endptr = (char *)(any ? s - 1 : nptr); in strtoull_l()
130 strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoull() argument
132 return strtoull_l(nptr, endptr, base, __get_locale()); in strtoull()
H A Dstrtol.c56 strtol_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtol_l() argument
146 if (endptr != NULL) in strtol_l()
147 *endptr = (char *)(any ? s - 1 : nptr); in strtol_l()
151 strtol(const char * __restrict nptr, char ** __restrict endptr, int base) in strtol() argument
153 return strtol_l(nptr, endptr, base, __get_locale()); in strtol()
H A Dstrtoimax.c56 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoimax_l() argument
147 if (endptr != NULL) in strtoimax_l()
148 *endptr = (char *)(any ? s - 1 : nptr); in strtoimax_l()
152 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoimax() argument
154 return strtoimax_l(nptr, endptr, base, __get_locale()); in strtoimax()
H A Dstrtoll.c56 strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoll_l() argument
147 if (endptr != NULL) in strtoll_l()
148 *endptr = (char *)(any ? s - 1 : nptr); in strtoll_l()
152 strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoll() argument
154 return strtoll_l(nptr, endptr, base, __get_locale()); in strtoll()
/freebsd-12.1/lib/libc/iconv/
H A D_strtol.h49 _FUNCNAME(const char *nptr, char **endptr, int base) in _FUNCNAME() argument
60 if (endptr != NULL) in _FUNCNAME()
62 *endptr = __DECONST(void *, nptr); in _FUNCNAME()
165 if (endptr != NULL) in _FUNCNAME()
167 *endptr = __DECONST(void *, any ? s - 1 : nptr); in _FUNCNAME()
/freebsd-12.1/contrib/ipfilter/
H A Dgenmask.c17 char *endptr = 0L; local
44 bits = (int)strtol(msk, &endptr, 0);
49 if ((*endptr != '\0') || (bits < 0) || (bits > 128))
54 if (*endptr != '\0' || bits > 32 || bits < 0)

1234567