X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Fatoi.c;h=eac0e1652ce71d03a4d5ec11889d6e8209d07d27;hp=75987e0a33d8d2d1c9d8d8daa5e8a44420b0332e;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=bb7adccc31cb145b671afe75c432da3fc494ad48 diff --git a/functions/stdlib/atoi.c b/functions/stdlib/atoi.c index 75987e0..eac0e16 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> +#include "_PDCLIB_test.h" -int main() +int main( void ) { - BEGIN_TESTS; /* no tests for a simple wrapper */ return TEST_RESULTS; }