X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fstrtox_main.c;h=25aff70300c6c9910656a33f028b0eddddf7e291;hb=40491b595bb70b20781cc10e235ebf6f1f7b2455;hp=e6e3d110051ed52bbc6b35968bbf448a9ea70f50;hpb=0292f971663afe513ec4e8881aa2ec9d57b8f152;p=pdclib 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 = '+';