X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fatoi.c;h=c7c5c29a3821d673184dea1d5e0c1d74ec7d5244;hb=cd6cfe0f578c4f744ddc9a342243aff6b42f8027;hp=75987e0a33d8d2d1c9d8d8daa5e8a44420b0332e;hpb=61c50ee9e390879904e28f6e041dc86f4a1a8cd7;p=pdclib.old diff --git a/functions/stdlib/atoi.c b/functions/stdlib/atoi.c index 75987e0..c7c5c29 100644 --- a/functions/stdlib/atoi.c +++ b/functions/stdlib/atoi.c @@ -1,26 +1,27 @@ /* $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; }