#include <precomp.h>
Go to the source code of this file.
◆ strtol()
Definition at line 8 of file strtol.c.
14 int neg = 0, any, cutlim;
32 c ==
'0' && (*
s ==
'x' || *
s ==
'X'))
39 base =
c ==
'0' ? 8 : 10;
59 cutlim = cutoff % (
unsigned long)
base;
61 for (acc = 0, any = 0;;
c = *
s++)
71 if (any < 0 || acc > cutoff || (acc == cutoff &&
c > cutlim))
90 *endptr = any ? (
char *)((
size_t)(
s - 1)) : (
char *)((
size_t)nptr);
errno_t __cdecl _set_errno(_In_ int _Value)