• Main Page
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

ext/-test-/string/set_len.c

Go to the documentation of this file.
00001 #include "ruby.h"
00002 
00003 static VALUE
00004 bug_str_set_len(VALUE str, VALUE len)
00005 {
00006     rb_str_set_len(str, NUM2LONG(len));
00007     return str;
00008 }
00009 
00010 void
00011 Init_set_len(VALUE klass)
00012 {
00013     rb_define_method(klass, "set_len", bug_str_set_len, 1);
00014 }
00015 

Generated on Thu Sep 8 2011 03:50:29 for Ruby by  doxygen 1.7.1