This is a port of the mruby/c tutorial Chapter 03 to the mbed environment.
For details, refer to the following.
http://www.s-itoc.jp/activity/research/mrubyc/mrubyc_tutorial/436
Note:There is a change in rtt0.h from the original source in the mruby/c. It was necessary for inclusion in C ++ source.
mrubyc/c_string.h
- Committer:
- tk_takateku
- Date:
- 2017-02-15
- Revision:
- 0:33feccbba3ff
File content as of revision 0:33feccbba3ff:
/*! @file @brief <pre> Copyright (C) 2015 Kyushu Institute of Technology. Copyright (C) 2015 Shimane IT Open-Innovation Center. This file is distributed under BSD 3-Clause License. </pre> */ #ifndef MRBC_SRC_C_STRING_H_ #define MRBC_SRC_C_STRING_H_ #include <stdint.h> #include "vm.h" #ifdef __cplusplus extern "C" { #endif void mrbc_init_class_string(mrb_vm *vm); char *mrbc_string_dup(mrb_vm *vm, const char *str); char *mrbc_string_cat(mrb_vm *vm, char *s1, const char *s2); #ifdef __cplusplus } #endif #endif