diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-11 08:38:33 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-11 08:38:33 -0800 |
| commit | 3e021b8e858194aba692912af26bc2a81e0b67ed (patch) | |
| tree | 6ccfd4aa1be20121d5edcc0a37c8d8c8f2ccfc13 /include | |
| parent | 75ae568236d1b634f48c7922b1416618181c4bf7 (diff) | |
| parent | 397d1e7aa9980c953a82139b91c7de4354defb19 (diff) | |
| download | mruby-3e021b8e858194aba692912af26bc2a81e0b67ed.tar.gz mruby-3e021b8e858194aba692912af26bc2a81e0b67ed.zip | |
Merge pull request #836 from iij/pr-mrb_str_to_cstr
string contains null byte check utility function (mrb_str_to_cstr)
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h index 38e8f930d..fca8b5b47 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -80,6 +80,7 @@ mrb_value mrb_str_cat(mrb_state *mrb, mrb_value str, const char *ptr, long len); mrb_value mrb_str_append(mrb_state *mrb, mrb_value str, mrb_value str2); int mrb_str_cmp(mrb_state *mrb, mrb_value str1, mrb_value str2); +char *mrb_str_to_cstr(mrb_state *mrb, mrb_value str); #if defined(__cplusplus) } /* extern "C" { */ |
