1#include "ruby.h"
2
3static VALUE
4bug_str_set_len(VALUE str, VALUE len)
5{
6    rb_str_set_len(str, NUM2LONG(len));
7    return str;
8}
9
10void
11Init_set_len(VALUE klass)
12{
13    rb_define_method(klass, "set_len", bug_str_set_len, 1);
14}
15