libc: strtoul's endptr must not be const

This commit is contained in:
apio 2022-10-22 12:12:52 +02:00
parent 6e01323e84
commit 91969d4d48
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ extern "C"
long long atoll(const char* 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. */
char* getenv(const char*);

View File

@ -46,7 +46,7 @@ extern "C"
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 (endptr) NOT_IMPLEMENTED("strtoul with non-null endptr");