libc: core: implement strtoimax and strtoumax

This commit is contained in:
2026-05-30 10:06:14 +01:00
parent 2795a66985
commit 07a1d579ca
3 changed files with 219 additions and 0 deletions
+13
View File
@@ -2,6 +2,7 @@
#define STDLIB_H_
#include <stddef.h>
#include <stdint.h>
extern void abort(void);
extern void exit(int result);
@@ -27,4 +28,16 @@ extern unsigned long long strtoull(
char **restrict str_end,
int base);
extern uintmax_t strtoumax(
const char *restrict str,
char **restrict endptr,
int base);
extern intmax_t strtoimax(
const char *restrict str,
char **restrict str_end,
int base);
extern float strtof(const char *restrict str, char **restrict endptr);
extern double strtod(const char *restrict str, char **restrict endptr);
#endif