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