uniLoader/lib/stdlib/atol.c
Ivaylo Ivanov a1be36ae02 EXPERIMENTAL: Partially implement NewLib
Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
2023-07-19 19:37:17 +03:00

22 lines
275 B
C

/*
* Andy Wilson, 2-Oct-89.
*/
#include <stdlib.h>
#include <_ansi.h>
#ifndef _REENT_ONLY
long
atol (const char *s)
{
return strtol (s, NULL, 10);
}
#endif /* !_REENT_ONLY */
long
_atol_r (struct _reent *ptr, const char *s)
{
return _strtol_r (ptr, s, NULL, 10);
}