X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fatol.c;h=a1403fe9010744218d61ec21e308a0f7fd99e5e1;hb=326f9b37c5bbc8b8da0aa62c3ea04833eea4963c;hp=b779f564e7d5c1ce390991e6ecdc12dbf1a3229c;hpb=61c50ee9e390879904e28f6e041dc86f4a1a8cd7;p=pdclib.old diff --git a/functions/stdlib/atol.c b/functions/stdlib/atol.c index b779f56..a1403fe 100644 --- a/functions/stdlib/atol.c +++ b/functions/stdlib/atol.c @@ -8,19 +8,22 @@ Permission is granted to use, modify, and / or redistribute at will. */ -#include <_PDCLIB_int.h> +#include + +#ifndef REGTEST long int atol( const char * s ) { return (long 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; }