summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools/mrdb/apistring.h
blob: 33737e7fd87dec4d445dd6664006974ddac5102b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * apistring.h
 */

#ifndef APISTRING_H_
#define APISTRING_H_

#include "mruby.h"

/* both functions return a null pointer on failure */
char *mrdb_strndup(mrb_state *mrb, const char *s, size_t size);
char *mrdb_strdup(mrb_state *mrb, const char *s);

#endif /* APISTRING_H_ */