reactos/lib/sdk/crt/string/atol.c
Hermès Bélusca-Maïto b819608ed8 Create a branch for console restructuration work.
svn path=/branches/condrv_restructure/; revision=63104
2014-05-02 14:13:40 +00:00

24 lines
391 B
C

/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <precomp.h>
/*
* @implemented
*/
long atol(const char *str)
{
return (long)_atoi64(str);
}
/*
* @unimplemented
*/
int _atoldbl(_LDOUBLE *value, char *str)
{
/* FIXME needs error checking for huge/small values */
#if 0
long double ld;
ld = strtold(str,0);
memcpy(value, &ld, 10);
#endif
return 0;
}