Home
last modified time | relevance | path

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

1234567891011

/netbsd-src/external/apache2/llvm/dist/libcxx/include/__support/xlocale/
H A D__strtonum_fallback.h23 char **endptr, locale_t) { in strtof_l() argument
24 return ::strtof(nptr, endptr); in strtof_l()
28 char **endptr, locale_t) { in strtod_l() argument
29 return ::strtod(nptr, endptr); in strtod_l()
33 char **endptr, locale_t) { in strtold_l() argument
34 return ::strtold(nptr, endptr); in strtold_l()
38 strtoll_l(const char *nptr, char **endptr, int base, locale_t) { in strtoll_l() argument
39 return ::strtoll(nptr, endptr, base); in strtoll_l()
43 strtoull_l(const char *nptr, char **endptr, int base, locale_t) { in strtoull_l() argument
44 return ::strtoull(nptr, endptr, base); in strtoull_l()
[all …]
/netbsd-src/sys/arch/hpcmips/stand/lcboot/
H A Dmain.c457 char *endptr; in command_dump() local
462 p = (const char *) strtoul(opt, &endptr, 16); in command_dump()
463 if (opt == endptr) { in command_dump()
469 limit = (const char *) strtoul(opt, &endptr, 16); in command_dump()
470 if (opt == endptr) { in command_dump()
520 char *endptr; in load_srec() local
537 reclen_bk = reclen = strtoul(s2lbuf, &endptr, 16); in load_srec()
538 if (endptr != &s2lbuf[2]) in load_srec()
570 recaddr = strtoul(s2lbuf, &endptr, 16); in load_srec()
571 if (endptr != p) in load_srec()
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/include/__support/musl/
H A Dxlocale.h27 static inline long long strtoll_l(const char *nptr, char **endptr, int base, in strtoll_l() argument
29 return strtoll(nptr, endptr, base); in strtoll_l()
32 static inline unsigned long long strtoull_l(const char *nptr, char **endptr, in strtoull_l() argument
34 return strtoull(nptr, endptr, base); in strtoull_l()
37 static inline long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr, in wcstoll_l() argument
39 return wcstoll(nptr, endptr, base); in wcstoll_l()
43 wchar_t **endptr, int base, in wcstoull_l() argument
45 return wcstoull(nptr, endptr, base); in wcstoull_l()
48 static inline long double wcstold_l(const wchar_t *nptr, wchar_t **endptr, in wcstold_l() argument
50 return wcstold(nptr, endptr); in wcstold_l()
/netbsd-src/external/bsd/am-utils/dist/libamu/
H A Dmtab.c173 char *eq, *endptr; in hasmntvalerr() local
189 endptr = NULL; in hasmntvalerr()
190 i = strtol(eq, &endptr, 0); /* hex and octal allowed ;-) */ in hasmntvalerr()
191 if (!endptr || in hasmntvalerr()
192 (endptr != eq && (*endptr == ',' || *endptr == '\0'))) { in hasmntvalerr()
232 char *endptr = strchr(eq, ','); in hasmntstr() local
235 if (!endptr) in hasmntstr()
239 int len = endptr - eq; in hasmntstr()
/netbsd-src/lib/libc/locale/
H A D_wcstod.h61 wchar_t ** __restrict endptr, locale_t loc) in INT_NAME()
119 if (endptr != NULL) in INT_NAME()
121 *endptr = __UNCONST(start + (size_t)(end - buf)); in INT_NAME()
128 if (endptr != NULL) in INT_NAME()
129 *endptr = __UNCONST(nptr); in INT_NAME()
135 wchar_t ** __restrict endptr)
137 return INT_NAME(_int_, _FUNCNAME, _l)(nptr, endptr, _current_locale());
142 wchar_t ** __restrict endptr, locale_t loc)
144 return INT_NAME(_int_, _FUNCNAME, _l)(nptr, endptr, loc);
H A D_wcstoul.h52 INT_FUNCNAME(_int_, _FUNCNAME, _l)(const wchar_t *nptr, wchar_t **endptr, in INT_FUNCNAME()
120 if (endptr != 0) in INT_FUNCNAME()
121 *endptr = __UNCONST(any ? s - 1 : nptr); in INT_FUNCNAME()
126 _FUNCNAME(const wchar_t *nptr, wchar_t **endptr, int base) in _FUNCNAME() argument
128 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, in _FUNCNAME()
133 INT_FUNCNAME(, _FUNCNAME, _l)(const wchar_t *nptr, wchar_t **endptr,
136 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, loc);
H A D_wcstol.h53 INT_FUNCNAME(_int_, _FUNCNAME, _l)(const wchar_t *nptr, wchar_t **endptr, in INT_FUNCNAME()
144 if (endptr != 0) in INT_FUNCNAME()
145 *endptr = __UNCONST(any ? s - 1 : nptr); in INT_FUNCNAME()
150 _FUNCNAME(const wchar_t *nptr, wchar_t **endptr, int base) in _FUNCNAME() argument
152 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, in _FUNCNAME()
157 INT_FUNCNAME(, _FUNCNAME, _l)(const wchar_t *nptr, wchar_t **endptr,
160 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, loc);
/netbsd-src/common/lib/libc/stdlib/
H A D_strtoul.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()
157 if (endptr != NULL) in _FUNCNAME()
159 *endptr = __UNCONST(any ? s - 1 : nptr); in _FUNCNAME()
166 _FUNCNAME(const char *nptr, char **endptr, int base) in _FUNCNAME() argument
168 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, _current_locale()); in _FUNCNAME()
172 INT_FUNCNAME(, _FUNCNAME, _l)(const char *nptr, char **endptr, int base, locale_t loc)
174 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, loc);
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);
/netbsd-src/usr.sbin/envstat/
H A Dconfig.c245 char *endptr, *strval; in config_dict_adddev_prop() local
271 timo = strtoul(strval, &endptr, 10); in config_dict_adddev_prop()
272 if (*endptr != '\0') { in config_dict_adddev_prop()
506 char *endptr; in config_devblock_check_sensorprops() local
517 val = strtod(strval, &endptr); in config_devblock_check_sensorprops()
518 if (*endptr != '\0') in config_devblock_check_sensorprops()
536 val = strtod(strval, &endptr); in config_devblock_check_sensorprops()
537 if ((*endptr != '\0') || (val < 0 || val > 100)) in config_devblock_check_sensorprops()
564 val = strtod(strval, &endptr); in config_devblock_check_sensorprops()
565 if ((*endptr ! in config_devblock_check_sensorprops()
713 char *strval, *tmp, *endptr; convert_val_to_pnumber() local
[all...]
/netbsd-src/external/bsd/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()
/netbsd-src/external/gpl2/grep/dist/lib/
H A Dstrtoumax.c57 strtoumax (char const *ptr, char **endptr, int base) in strtoumax() argument
60 if (sizeof (uintmax_t) == sizeof function (ptr, endptr, base)) \ in strtoumax()
61 return function (ptr, endptr, base); in strtoumax()
77 char *p, *endptr; in main() local
79 printf ("sizeof strtoull(): %d\n", sizeof strtoull(p, &endptr, 10)); in main()
80 printf ("sizeof strtoul(): %d\n", sizeof strtoul(p, &endptr, 10)); in main()
H A Dstrtol.c264 INTERNAL (strtol) (nptr, endptr, base, group LOCALE_PARAM)
266 STRING_TYPE **endptr; variable
408 if (endptr != NULL)
409 *endptr = (STRING_TYPE *) s;
439 if (endptr != NULL)
443 *endptr = (STRING_TYPE *) &save[-1];
446 *endptr = (STRING_TYPE *) nptr;
463 INT strtol PARAMS ((const STRING_TYPE *nptr, STRING_TYPE **endptr, int base));
471 strtol (nptr, endptr, base LOCALE_PARAM)
473 STRING_TYPE **endptr; variable
[all …]
/netbsd-src/external/mit/lua/dist/src/
H A Dlobject.c182 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number() argument
190 *endptr = cast_charp(s); /* nothing is valid yet */ in lua_strx2number()
212 *endptr = cast_charp(s); /* valid up to here */ in lua_strx2number()
225 *endptr = cast_charp(s); /* valid up to here */ in lua_strx2number()
246 char *endptr; in l_str2dloc() local
247 *result = (mode == 'x') ? lua_strx2number(s, &endptr) /* try to convert */ in l_str2dloc()
248 : lua_str2number(s, &endptr); in l_str2dloc()
249 if (endptr == s) return NULL; /* nothing recognized? */ in l_str2dloc()
250 while (lisspace(cast_uchar(*endptr))) endptr++; /* skip trailing spaces */ in l_str2dloc()
251 return (*endptr == '\0') ? endptr : NULL; /* OK iff no trailing chars */ in l_str2dloc()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/stdc/
H A Dstdlib.d114 double strtod(scope inout(char)* nptr, scope inout(char)** endptr);
116 float strtof(scope inout(char)* nptr, scope inout(char)** endptr);
118 c_long strtol(scope inout(char)* nptr, scope inout(char)** endptr, int base);
120 long strtoll(scope inout(char)* nptr, scope inout(char)** endptr, int base);
122 c_ulong strtoul(scope inout(char)* nptr, scope inout(char)** endptr, int base);
124 ulong strtoull(scope inout(char)* nptr, scope inout(char)** endptr, int base);
131 real __mingw_strtold(scope inout(char)* nptr, scope inout(char)** endptr); in version()
139 extern (D) real strtold(scope inout(char)* nptr, inout(char)** endptr) in version()
141 return strtod(nptr, endptr); in version()
148 real strtold(scope inout(char)* nptr, scope inout(char)** endptr);
/netbsd-src/crypto/external/bsd/openssl/dist/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()
/netbsd-src/external/gpl2/diffutils/dist/lib/
H A Dstrtol.c260 INTERNAL (strtol) (nptr, endptr, base, group LOCALE_PARAM)
262 STRING_TYPE **endptr; variable
404 if (endptr != NULL)
405 *endptr = (STRING_TYPE *) s;
435 if (endptr != NULL)
439 *endptr = (STRING_TYPE *) &save[-1];
442 *endptr = (STRING_TYPE *) nptr;
459 INT strtol PARAMS ((const STRING_TYPE *nptr, STRING_TYPE **endptr, int base));
467 strtol (nptr, endptr, base LOCALE_PARAM)
469 STRING_TYPE **endptr; variable
[all …]
/netbsd-src/external/lgpl3/mpc/dist/src/
H A Dstrtoc.c35 mpc_strtoc (mpc_ptr rop, const char *nptr, char **endptr, int base, mpc_rnd_t rnd) in mpc_strtoc() argument
79 if (endptr != NULL) in mpc_strtoc()
80 *endptr = (char*) p; in mpc_strtoc()
84 if (endptr != NULL) in mpc_strtoc()
85 *endptr = (char*) nptr; in mpc_strtoc()
/netbsd-src/external/bsd/ipf/dist/lib/
H A Dgenmask.c19 char *endptr = 0L; local
46 bits = (int)strtol(msk, &endptr, 0);
51 if ((*endptr != '\0') || (bits < 0) || (bits > 128))
56 if (*endptr != '\0' || bits > 32 || bits < 0)
/netbsd-src/external/gpl3/gcc.old/dist/libcpp/
H A Dmakeucnid.c90 char *endptr; in read_ucnid() local
91 start = strtoul (l, &endptr, 16); in read_ucnid()
92 if (endptr == l || (*endptr != '-' && ! isspace (*endptr))) in read_ucnid()
94 l = endptr; in read_ucnid()
99 end = strtoul (l + 1, &endptr, 16); in read_ucnid()
102 l = endptr; in read_ucnid()
/netbsd-src/external/gpl2/xcvs/dist/lib/
H A Dstrtol.c255 INTERNAL (strtol) (const STRING_TYPE *nptr, STRING_TYPE **endptr, in INTERNAL()
395 if (endptr != NULL) in INTERNAL()
396 *endptr = (STRING_TYPE *) s; in INTERNAL()
426 if (endptr != NULL) in INTERNAL()
430 *endptr = (STRING_TYPE *) &save[-1]; in INTERNAL()
433 *endptr = (STRING_TYPE *) nptr; in INTERNAL()
446 strtol (const STRING_TYPE *nptr, STRING_TYPE **endptr, in strtol() argument
449 return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM); in strtol()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dstrtol.c242 INTERNAL (strtol) (const STRING_TYPE *nptr, STRING_TYPE **endptr, in INTERNAL()
382 if (endptr != NULL) in INTERNAL()
383 *endptr = (STRING_TYPE *) s; in INTERNAL()
413 if (endptr != NULL) in INTERNAL()
417 *endptr = (STRING_TYPE *) &save[-1]; in INTERNAL()
420 *endptr = (STRING_TYPE *) nptr; in INTERNAL()
433 strtol (const STRING_TYPE *nptr, STRING_TYPE **endptr, in strtol() argument
436 return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM); in strtol()
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/
H A Dstrtol.c242 INTERNAL (strtol) (const STRING_TYPE *nptr, STRING_TYPE **endptr, in INTERNAL()
382 if (endptr != NULL) in INTERNAL()
383 *endptr = (STRING_TYPE *) s; in INTERNAL()
413 if (endptr != NULL) in INTERNAL()
417 *endptr = (STRING_TYPE *) &save[-1]; in INTERNAL()
420 *endptr = (STRING_TYPE *) nptr; in INTERNAL()
433 strtol (const STRING_TYPE *nptr, STRING_TYPE **endptr, in strtol() argument
436 return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM); in strtol()
/netbsd-src/external/bsd/libevent/dist/test/
H A Dbench_http.c95 char *endptr = NULL; in main() local
125 port = (int)strtol(argv[i+1], &endptr, 10); in main()
126 if (*endptr != '\0') { in main()
136 content_len = (size_t)strtol(argv[i+1], &endptr, 10); in main()
137 if (*endptr != '\0' || content_len == 0) { in main()
/netbsd-src/sbin/bioctl/
H A Dbioctl.c600 char *endptr; in bio_setstate_passthru() local
625 bs.bs_other_id = (unsigned int)strtoul(argv[1], &endptr, 10); in bio_setstate_passthru()
626 if (*endptr != '\0') in bio_setstate_passthru()
640 char *endptr; in bio_setstate_consistency() local
654 bs.bs_volid = (unsigned int)strtoul(argv[1], &endptr, 10); in bio_setstate_consistency()
655 if (*endptr != '\0') in bio_setstate_consistency()
698 char *endptr, *stripe, levelstr[32]; in bio_volops_create() local
730 bc.bc_volid = (unsigned int)strtoul(argv[1], &endptr, 10); in bio_volops_create()
731 if (*endptr != '\0') in bio_volops_create()
739 bc.bc_stripe = (unsigned int)strtoul(stripe, &endptr, 10); in bio_volops_create()
[all …]

1234567891011