diff --git a/libs/libc/include/stdlib.h b/libs/libc/include/stdlib.h index 2ab42cec..dfb18dbb 100644 --- a/libs/libc/include/stdlib.h +++ b/libs/libc/include/stdlib.h @@ -63,6 +63,8 @@ extern "C" /* Returns an integer (of type unsigned long) parsed from the string str. */ unsigned long strtoul(const char* str, char** endptr, int base); + double strtod(const char* str, char** endptr); // Not implemented. + /* Returns an integer (of type long) parsed from the string str. */ long strtol(const char* str, char** endptr, int base); diff --git a/libs/libc/src/stdlib.cpp b/libs/libc/src/stdlib.cpp index b123116c..012f8c27 100644 --- a/libs/libc/src/stdlib.cpp +++ b/libs/libc/src/stdlib.cpp @@ -303,4 +303,9 @@ extern "C" if (errno) return NULL; return str; } + + double strtod(const char*, char**) + { + NOT_IMPLEMENTED("strtod"); + } } \ No newline at end of file