diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-07-06 17:01:37 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-07-06 17:01:37 +0900 |
| commit | 7c362ee7237ec31e4e4b1bf3cc81f59e86c83573 (patch) | |
| tree | 5b1f2323812995d217e5c85e5f37fb88a50bd368 /mrbgems/mruby-bin-debugger/tools/mrdb/apistring.h | |
| parent | 7fa0a704e010b4a9d1ac96da9f8a0ffc4cb13c2e (diff) | |
| parent | f31733045feee3c381ee350be64e1a83682d5543 (diff) | |
| download | mruby-7c362ee7237ec31e4e4b1bf3cc81f59e86c83573.tar.gz mruby-7c362ee7237ec31e4e4b1bf3cc81f59e86c83573.zip | |
Merge branch 'mrb_debug_strdup-and-strndup' of https://github.com/cremno/mruby into cremno-mrb_debug_strdup-and-strndup
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/apistring.h')
| -rw-r--r-- | mrbgems/mruby-bin-debugger/tools/mrdb/apistring.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apistring.h b/mrbgems/mruby-bin-debugger/tools/mrdb/apistring.h new file mode 100644 index 000000000..e48478d2e --- /dev/null +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apistring.h @@ -0,0 +1,14 @@ +/* + * apistring.h + */ + +#ifndef APISTRING_H_ +#define APISTRING_H_ + +#include "mruby.h" + +/* both functions return a null pointer on failure */ +char *mrb_debug_strndup(mrb_state *mrb, const char *s, size_t size); +char *mrb_debug_strdup(mrb_state *mrb, const char *s); + +#endif /* APISTRING_H_ */ |
