libc: strtoul's endptr must not be const
This commit is contained in:
parent
6e01323e84
commit
91969d4d48
@ -31,7 +31,7 @@ extern "C"
|
|||||||
long long atoll(const char* str);
|
long long atoll(const char* str);
|
||||||
|
|
||||||
/* Returns an integer (of type unsigned long) parsed from the string str. */
|
/* Returns an integer (of type unsigned long) parsed from the string str. */
|
||||||
unsigned long strtoul(const char* str, const char** endptr, int base);
|
unsigned long strtoul(const char* str, char** endptr, int base);
|
||||||
|
|
||||||
/* Not implemented. */
|
/* Not implemented. */
|
||||||
char* getenv(const char*);
|
char* getenv(const char*);
|
||||||
|
@ -46,7 +46,7 @@ extern "C"
|
|||||||
return string_to_integer_type<long long>(str);
|
return string_to_integer_type<long long>(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long strtoul(const char* str, const char** endptr, int base)
|
unsigned long strtoul(const char* str, char** endptr, int base)
|
||||||
{
|
{
|
||||||
if (base != 0 && base != 10) NOT_IMPLEMENTED("strtoul with base not in (0,10)");
|
if (base != 0 && base != 10) NOT_IMPLEMENTED("strtoul with base not in (0,10)");
|
||||||
if (endptr) NOT_IMPLEMENTED("strtoul with non-null endptr");
|
if (endptr) NOT_IMPLEMENTED("strtoul with non-null endptr");
|
||||||
|
Loading…
Reference in New Issue
Block a user