2000-02-18 03:39:52 +08:00
|
|
|
/*
|
|
|
|
* Andy Wilson, 2-Oct-89.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <_ansi.h>
|
|
|
|
|
2003-11-28 04:15:47 +08:00
|
|
|
#ifndef _REENT_ONLY
|
2000-02-18 03:39:52 +08:00
|
|
|
long
|
2017-12-04 10:25:16 +08:00
|
|
|
_DEFUN (atol, (s), const char *s)
|
2000-02-18 03:39:52 +08:00
|
|
|
{
|
|
|
|
return strtol (s, NULL, 10);
|
|
|
|
}
|
2003-11-28 04:15:47 +08:00
|
|
|
#endif /* !_REENT_ONLY */
|
|
|
|
|
|
|
|
long
|
2017-12-04 10:25:16 +08:00
|
|
|
_DEFUN (_atol_r, (ptr, s), struct _reent *ptr, const char *s)
|
2003-11-28 04:15:47 +08:00
|
|
|
{
|
|
|
|
return _strtol_r (ptr, s, NULL, 10);
|
|
|
|
}
|
|
|
|
|