mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 03:19:54 +08:00
83bf7d2f89
* libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes. * libc/stdlib/atol.c (_atol_r): New reentrant function. * libc/stdlib/atoll.c (_atoll_r): Ditto.
22 lines
312 B
C
22 lines
312 B
C
/*
|
|
* Andy Wilson, 2-Oct-89.
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <_ansi.h>
|
|
|
|
#ifndef _REENT_ONLY
|
|
long
|
|
_DEFUN (atol, (s), _CONST char *s)
|
|
{
|
|
return strtol (s, NULL, 10);
|
|
}
|
|
#endif /* !_REENT_ONLY */
|
|
|
|
long
|
|
_DEFUN (_atol_r, (ptr, s), struct _reent *ptr _AND _CONST char *s)
|
|
{
|
|
return _strtol_r (ptr, s, NULL, 10);
|
|
}
|
|
|