reactos/lib/sdk/crt/string/atol.c
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

25 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;
}