]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/strtox_prelim.c
No exceptions to regtestdrivers anymore.
[pdclib] / functions / _PDCLIB / strtox_prelim.c
index 67625152103ad7ebfa6d982635214e6d2152de29..98f7fcea758145facf450f0aff74a6a767ebd7ea 100644 (file)
@@ -8,6 +8,8 @@
 #include <stddef.h>
 #include <string.h>
 
+#ifndef REGTEST
+
 const char * _PDCLIB_strtox_prelim( const char * p, char * sign, int * base )
 {
     /* skipping leading whitespace */
@@ -49,11 +51,14 @@ const char * _PDCLIB_strtox_prelim( const char * p, char * sign, int * base )
     return ( ( *base >= 2 ) && ( *base <= 36 ) ) ? p : NULL;
 }
 
+#endif
+
 #ifdef TEST
 #include "_PDCLIB_test.h"
 
 int main( void )
 {
+#ifndef REGTEST
     int base = 0;
     char sign = '\0';
     char test1[] = "  123";
@@ -81,6 +86,7 @@ int main( void )
     TESTCASE( _PDCLIB_strtox_prelim( test3, &sign, &base ) == NULL );
     base = 37;
     TESTCASE( _PDCLIB_strtox_prelim( test3, &sign, &base ) == NULL );
+#endif
     return TEST_RESULTS;
 }