summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-06-11 12:26:58 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-06-11 15:14:17 +0900
commit49af1fca03173f415c5634dafdce3ee81cc01401 (patch)
treeeb1a8ddfe0f2fcc5b10e6666322efd0964189b30 /include
parent14a69c6ffd08842a896066c3610c5fabcae3925f (diff)
downloadmruby-49af1fca03173f415c5634dafdce3ee81cc01401.tar.gz
mruby-49af1fca03173f415c5634dafdce3ee81cc01401.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index 841cc7e6e..d9389b6fd 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -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