File: apistring.h

package info (click to toggle)
mruby 3.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,584 kB
  • sloc: ansic: 51,933; ruby: 29,510; yacc: 7,077; cpp: 517; makefile: 51; sh: 42
file content (14 lines) | stat: -rw-r--r-- 281 bytes parent folder | download
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_ */