X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fatoi.c;h=c815b60b52feefb935018f751dc80277cf431316;hb=e1c526e9bad3f6e69391e94059096145390508d3;hp=75987e0a33d8d2d1c9d8d8daa5e8a44420b0332e;hpb=bb7adccc31cb145b671afe75c432da3fc494ad48;p=pdclib diff --git a/functions/stdlib/atoi.c b/functions/stdlib/atoi.c index 75987e0..c815b60 100644 --- a/functions/stdlib/atoi.c +++ b/functions/stdlib/atoi.c @@ -1,26 +1,25 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* atoi( const char * ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ -#include <_PDCLIB_int.h> +#include + +#ifndef REGTEST int atoi( const char * s ) { return (int) _PDCLIB_atomax( s ); } +#endif + #ifdef TEST #include <_PDCLIB_test.h> -int main() +int main( void ) { - BEGIN_TESTS; /* no tests for a simple wrapper */ return TEST_RESULTS; }