Ruby
1.9.3p551(2014-11-13revision48407)
Main Page
Modules
Data Structures
Files
File List
Globals
ext
-test-
string
set_len.c
Go to the documentation of this file.
1
#include "ruby.h"
2
3
static
VALUE
4
bug_str_set_len
(
VALUE
str,
VALUE
len
)
5
{
6
rb_str_set_len
(str,
NUM2LONG
(len));
7
return
str;
8
}
9
10
void
11
Init_set_len
(
VALUE
klass)
12
{
13
rb_define_method
(klass,
"set_len"
,
bug_str_set_len
, 1);
14
}
15
Generated on Fri Nov 14 2014 16:03:53 for Ruby by
1.8.3