]> pd.if.org Git - pdclib/blob - functions/stdlib/atol.c
Added size_t to stdlib.h, added redefinition guards, adjusted includes.
[pdclib] / functions / stdlib / atol.c
1 /* $Id$ */
2
3 /* Release $Name$ */
4
5 /* atol( const char * )
6
7    This file is part of the Public Domain C Library (PDCLib).
8    Permission is granted to use, modify, and / or redistribute at will.
9 */
10
11 #include <stdlib.h>
12
13 #ifndef REGTEST
14
15 long int atol( const char * s )
16 {
17     return (long int) _PDCLIB_atomax( s );
18 }
19
20 #endif
21
22 #ifdef TEST
23 #include <_PDCLIB_test.h>
24
25 int main()
26 {
27     BEGIN_TESTS;
28     /* no tests for a simple wrapper */
29     return TEST_RESULTS;
30 }
31
32 #endif