- /* TODO: Only if endptr != NULL */
- while ( memchr( _PDCLIB_digits, **p, base ) != NULL ) ++(*p);
+ /* TODO: Only if endptr != NULL - but do we really want *another* parameter? */
+ /* TODO: Earlier version was missing tolower() here but was not caught by tests */
+ while ( memchr( _PDCLIB_digits, tolower(**p), base ) != NULL ) ++(*p);