mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
accpect pacth in bug 2314, with one smaller change
the msvcrt20.def change was not accpect, it need more time for review. and we do not support __set_error in libcntpr. the patch are base on current strtoul, the strtoull are the long long version of strtoul. so he took current stroul and adpate it to long long. and also add missing error code. patch are done by Pierre Schweitzer email heis_spiter at hotmail.com See issue #2314 for more details. svn path=/trunk/; revision=27344
This commit is contained in:
parent
149ffee96d
commit
3c6d190150
|
@ -1065,6 +1065,7 @@ strspn
|
|||
strstr
|
||||
strtol
|
||||
strtoul
|
||||
strtoull
|
||||
swprintf
|
||||
tan
|
||||
tolower
|
||||
|
|
|
@ -523,6 +523,7 @@ strtod
|
|||
strtok
|
||||
strtol=NTDLL.strtol
|
||||
strtoul
|
||||
strtoull
|
||||
strxfrm
|
||||
swprintf=crt_swprintf
|
||||
swscanf
|
||||
|
|
|
@ -797,6 +797,7 @@ strtod
|
|||
strtok
|
||||
strtol=NTDLL.strtol
|
||||
strtoul
|
||||
strtoull
|
||||
strxfrm
|
||||
swprintf=crt_swprintf
|
||||
swscanf
|
||||
|
|
|
@ -137,6 +137,7 @@
|
|||
<file>splitp.c</file>
|
||||
<file>strtol.c</file>
|
||||
<file>strtoul.c</file>
|
||||
<file>strtoull.c</file>
|
||||
<file>wcstol.c</file>
|
||||
<file>wcstombs.c</file>
|
||||
<file>wcstoul.c</file>
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
/*
|
||||
* Convert a string to an unsigned long integer.
|
||||
*
|
||||
|
@ -64,6 +67,7 @@ strtoul(const char *nptr, char **endptr, int base)
|
|||
if (any < 0)
|
||||
{
|
||||
acc = ULONG_MAX;
|
||||
|
||||
}
|
||||
else if (neg)
|
||||
acc = -acc;
|
||||
|
|
Loading…
Reference in a new issue