aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/atol.c
blob: a5c8ee9f404e006ee09f18d9dc9898fa0182d784 (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
atol (const char *s)
{
  return strtol (s, NULL, 10);
}
#endif /* !_REENT_ONLY */

long
_atol_r (struct _reent *ptr, const char *s)
{
  return _strtol_r (ptr, s, NULL, 10);
}