X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fatol.c;h=df17e83d44b15c912ac163831b3d0b29b0cf64f7;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=b779f564e7d5c1ce390991e6ecdc12dbf1a3229c;hpb=bb7adccc31cb145b671afe75c432da3fc494ad48;p=pdclib diff --git a/functions/stdlib/atol.c b/functions/stdlib/atol.c index b779f56..df17e83 100644 --- a/functions/stdlib/atol.c +++ b/functions/stdlib/atol.c @@ -1,26 +1,26 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* atol( 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 long int atol( const char * s ) { return (long int) _PDCLIB_atomax( s ); } +#endif + #ifdef TEST -#include <_PDCLIB_test.h> -int main() +#include "_PDCLIB_test.h" + +int main( void ) { - BEGIN_TESTS; /* no tests for a simple wrapper */ return TEST_RESULTS; }