mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
readint.c: add new function mrb_int_read.
Difference from `strtoul(3)`: * reads `mrb_int` based on configuration * specifies the end of the string * no sign interpretation * base 10 only
This commit is contained in:
@@ -100,6 +100,7 @@ struct mrb_state;
|
||||
# define MRB_ENDIAN_LOHI(a,b) b a
|
||||
#endif
|
||||
|
||||
MRB_API mrb_int mrb_int_read(const char *p, const char *e, char **endp);
|
||||
#ifndef MRB_NO_FLOAT
|
||||
MRB_API double mrb_float_read(const char*, char**);
|
||||
#ifdef MRB_USE_FLOAT32
|
||||
|
||||
Reference in New Issue
Block a user