ReactOS
0.4.16-dev-2104-gb84fa49
atol.c
Go to the documentation of this file.
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
#include <precomp.h>
3
4
/*
5
* @implemented
6
*/
7
long
CDECL
atol
(
const
char
*
str
)
8
{
9
return
(
long
)
_atoi64
(
str
);
10
}
11
12
/*
13
* @unimplemented
14
*/
15
int
CDECL
_atoldbl
(
_LDOUBLE
*
value
,
char
*
str
)
16
{
17
/* FIXME needs error checking for huge/small values */
18
#if 0
19
long
double
ld;
20
ld =
strtold
(
str
,0);
21
memcpy
(
value
, &ld, 10);
22
#endif
23
return
0;
24
}
atol
long CDECL atol(const char *str)
Definition:
atol.c:7
_atoldbl
int CDECL _atoldbl(_LDOUBLE *value, char *str)
Definition:
atol.c:15
CDECL
#define CDECL
Definition:
compat.h:29
strtold
static long double strtold(const char *string, char **endptr)
Definition:
stdlib.h:235
_atoi64
_ACRTIMP __int64 __cdecl _atoi64(const char *)
Definition:
string.c:1757
memcpy
#define memcpy(s1, s2, n)
Definition:
mkisofs.h:878
str
const WCHAR * str
Definition:
rpc_transport.c:2696
_LDOUBLE
Definition:
stdlib.h:28
value
Definition:
pdh_main.c:96
sdk
lib
crt
string
atol.c
Generated on Tue Jan 6 2026 06:19:19 for ReactOS by
1.9.6