]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/atol.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / stdlib / atol.c
index b779f564e7d5c1ce390991e6ecdc12dbf1a3229c..fb5e512142b5285a797945ef4162020e7f776118 100644 (file)
@@ -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 <stdlib.h>
+
+#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;
 }