mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 22:03:48 +00:00
- Sync some changes in strings from libcntpr.
- Move string implementation (in "header" files) into /string dir. - Copy over libcntpr-specific implementations into _nt.c files (for now, later they could do with a define). - libcntpr's is now almost fully syncronized and could be merged into the tree except for "except" directory. svn path=/trunk/; revision=30283
This commit is contained in:
parent
c8a87ec7b8
commit
375959c206
46 changed files with 502 additions and 246 deletions
|
@ -1,4 +1,3 @@
|
|||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <precomp.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
@ -64,11 +63,10 @@ strtoul(const char *nptr, char **endptr, int base)
|
|||
if (any < 0)
|
||||
{
|
||||
acc = ULONG_MAX;
|
||||
__set_errno(ERANGE);
|
||||
}
|
||||
else if (neg)
|
||||
acc = -acc;
|
||||
if (endptr != 0)
|
||||
*endptr = any ? (char *)s - 1 : (char *)nptr;
|
||||
*endptr = any ? (char *)((size_t)(s - 1)) : (char *)((size_t)nptr);
|
||||
return acc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue