X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fstrtox_main.c;h=25aff70300c6c9910656a33f028b0eddddf7e291;hb=0e5744a8d4ac143cb816cb6b06b75fab03002c10;hp=e6e3d110051ed52bbc6b35968bbf448a9ea70f50;hpb=9d0f2c8362627b0e183cc9517d13f7f31f054aa2;p=pdclib.old diff --git a/functions/_PDCLIB/strtox_main.c b/functions/_PDCLIB/strtox_main.c index e6e3d11..25aff70 100644 --- a/functions/_PDCLIB/strtox_main.c +++ b/functions/_PDCLIB/strtox_main.c @@ -8,6 +8,7 @@ Permission is granted to use, modify, and / or redistribute at will. */ +#define _PDCLIB_INT_H _PDCLIB_INT_H #include <_PDCLIB_int.h> #include #include @@ -29,7 +30,7 @@ _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, int base, _PDCLIB_uintma else { errno = ERANGE; - /* TODO: Only if endptr != NULL */ + /* TODO: Only if endptr != NULL - but do we really want *another* parameter? */ while ( memchr( _PDCLIB_digits, **p, base ) != NULL ) ++(*p); /* TODO: This is ugly, but keeps caller from negating the error value */ *sign = '+';