OSDN Git Service

projects clean up 1
[pinoc/pinoc.git] / test / Standart_startup / lib / c / stdlib / atol.c
1 /*
2  * Andy Wilson, 2-Oct-89.
3  */
4
5 #include <stdlib.h>
6 #include <_ansi.h>
7
8 #ifndef _REENT_ONLY
9 long
10 _DEFUN (atol, (s), _CONST char *s)
11 {
12   return strtol (s, NULL, 10);
13 }
14 #endif /* !_REENT_ONLY */
15
16 long
17 _DEFUN (_atol_r, (ptr, s), struct _reent *ptr _AND _CONST char *s)
18 {
19   return _strtol_r (ptr, s, NULL, 10);
20 }
21