]> pd.if.org Git - pdclib/blob - functions/stdlib/atoi.c
697c77c1117327b896947b0cc9886ee87a384627
[pdclib] / functions / stdlib / atoi.c
1 /* $Id$ */
2
3 /* Release $Name$ */
4
5 /* atoi( 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 <_PDCLIB_int.h>
12 #include <stdlib.h>
13
14 #ifndef REGTEST
15
16 int atoi( const char * s )
17 {
18     return (int) _PDCLIB_atomax( s );
19 }
20
21 #endif
22
23 #ifdef TEST
24 #include <_PDCLIB_test.h>
25
26 int main()
27 {
28     BEGIN_TESTS;
29     /* no tests for a simple wrapper */
30     return TEST_RESULTS;
31 }
32
33 #endif