ReactOS 0.4.15-dev-7934-g1dc8d80
strtoul.c File Reference
#include <precomp.h>
Include dependency graph for strtoul.c:

Go to the source code of this file.

Functions

unsigned long CDECL _strtoul_l (const char *nptr, char **end, int base, _locale_t locale)
 
unsigned long CDECL strtoul (const char *nptr, char **end, int base)
 

Function Documentation

◆ _strtoul_l()

unsigned long CDECL _strtoul_l ( const char nptr,
char **  end,
int  base,
_locale_t  locale 
)

Definition at line 7 of file strtoul.c.

8{
10
11 if(ret > ULONG_MAX) {
12 ret = ULONG_MAX;
13#ifndef _LIBCNT_
14 *_errno() = ERANGE;
15#endif
16 }else if(ret < -(__int64)ULONG_MAX) {
17 ret = 1;
18#ifndef _LIBCNT_
19 *_errno() = ERANGE;
20#endif
21 }
22
23 return ret;
24}
#define ERANGE
Definition: acclib.h:92
#define __int64
Definition: basetyps.h:16
Definition: _locale.h:75
GLuint GLuint end
Definition: gl.h:1545
#define ULONG_MAX
Definition: limits.h:44
_CRTIMP int *__cdecl _errno(void)
Definition: errno.c:19
__int64 CDECL _strtoi64_l(const char *nptr, char **endptr, int base, _locale_t locale)
Definition: strtoi64.c:10
int ret

Referenced by strtoul().

◆ strtoul()

unsigned long CDECL strtoul ( const char nptr,
char **  end,
int  base 
)

Definition at line 29 of file strtoul.c.

30{
31 return _strtoul_l(nptr, end, base, NULL);
32}
#define NULL
Definition: types.h:112
unsigned long CDECL _strtoul_l(const char *nptr, char **end, int base, _locale_t locale)
Definition: strtoul.c:7