2a5f48c3fd
Prototype: unsigned long strtoul(FAR const char *nptr, FAR char **endptr, int base); unsigned long long strtoull(FAR const char *nptr, FAR char **endptr, int base); If endptr is not NULL, strtoul()/strtoull() should store the address of the first invalid character in *endptr. And if the correct value is outside the range of representable values, {ULONG_MAX} or {ULLONG_MAX} shall be returned and errno set to [ERANGE]. With such code: strtoul("34592348345343453453455645765736575865767", &endptr, 10); It indeed returns ULONG_MAX and sets errno to ERANGE. But after strtoul return, endptr points to "3455645765736575865767", not NULL. Signed-off-by: Sunny <zxcvbnm37425@gmail.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
lib_abort.c | ||
lib_abs.c | ||
lib_aligned_alloc.c | ||
lib_atexit.c | ||
lib_atof.c | ||
lib_atoi.c | ||
lib_atol.c | ||
lib_atoll.c | ||
lib_bsearch.c | ||
lib_checkbase.c | ||
lib_div.c | ||
lib_exit.c | ||
lib_getprogname.c | ||
lib_itoa.c | ||
lib_labs.c | ||
lib_ldiv.c | ||
lib_llabs.c | ||
lib_lldiv.c | ||
lib_mblen.c | ||
lib_mbstowcs.c | ||
lib_mbtowc.c | ||
lib_mkdtemp.c | ||
lib_mkstemp.c | ||
lib_mktemp.c | ||
lib_openpty.c | ||
lib_posix_memalign.c | ||
lib_ptsname.c | ||
lib_ptsnamer.c | ||
lib_qsort.c | ||
lib_rand48.c | ||
lib_rand.c | ||
lib_realpath.c | ||
lib_srand.c | ||
lib_strtol.c | ||
lib_strtold.c | ||
lib_strtoll.c | ||
lib_strtoul.c | ||
lib_strtoull.c | ||
lib_unlockpt.c | ||
lib_valloc.c | ||
lib_wcstombs.c | ||
lib_wctomb.c | ||
Make.defs |