summaryrefslogtreecommitdiff
path: root/ext/-test-/econv/append.c
blob: 724cd136c02e40a17b86b9d34b29629f4f28a756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);
}