22 lines
275 B
C
Raw Normal View History

2017-04-11 23:13:36 +02:00
/*
* Andy Wilson, 2-Oct-89.
*/
#include <stdlib.h>
#include <_ansi.h>
#ifndef _REENT_ONLY
long
2018-12-28 16:30:48 +01:00
atol (const char *s)
2017-04-11 23:13:36 +02:00
{
return strtol (s, NULL, 10);
}
#endif /* !_REENT_ONLY */
long
2018-12-28 16:30:48 +01:00
_atol_r (struct _reent *ptr, const char *s)
2017-04-11 23:13:36 +02:00
{
return _strtol_r (ptr, s, NULL, 10);
}