libc: core: implement strtoimax and strtoumax
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user