Welcome to mirror list, hosted at ThFree Co, Russian Federation.

atol.c « stdlib « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d0e5cd0bbd2170ffd5511c3c413f1dcd433be79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * 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);
}