X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2F_PDCLIB%2Fstrtox_prelim.c;h=98f7fcea758145facf450f0aff74a6a767ebd7ea;hp=67625152103ad7ebfa6d982635214e6d2152de29;hb=2040228f27d623585d339dec175c4e779ca9edb5;hpb=3ffa88d3e16e7564ff81bf3650b5afa113caac97 diff --git a/functions/_PDCLIB/strtox_prelim.c b/functions/_PDCLIB/strtox_prelim.c index 6762515..98f7fce 100644 --- a/functions/_PDCLIB/strtox_prelim.c +++ b/functions/_PDCLIB/strtox_prelim.c @@ -8,6 +8,8 @@ #include #include +#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; }