]> pd.if.org Git - pdclib.old/blobdiff - functions/stdlib/atol.c
Porting current working set from CVS.
[pdclib.old] / functions / stdlib / atol.c
index b779f564e7d5c1ce390991e6ecdc12dbf1a3229c..a1403fe9010744218d61ec21e308a0f7fd99e5e1 100644 (file)
@@ -8,19 +8,22 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
-#include <_PDCLIB_int.h>
+#include <stdlib.h>
+
+#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;
 }