1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-/econv/append.c
2022-08-18 14:57:08 +09:00

15 lines
298 B
C

#include "ruby/ruby.h"
#include "ruby/encoding.h"
static VALUE
econv_append(VALUE self, VALUE src, VALUE dst)
{
rb_econv_t *ec = DATA_PTR(self);
return rb_econv_str_append(ec, src, dst, 0);
}
void
Init_econv_append(VALUE klass)
{
rb_define_method(klass, "append", econv_append, 2);
}