Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_1_10) is shown here.
malloc(p1)
public
Allocate size bytes of memory and return the integer memory
address for the allocated memory.
VALUE
rb_dl_malloc(VALUE self, VALUE size)
{
void *ptr;
ptr = (void*)ruby_xmalloc(NUM2INT(size));
return PTR2NUM(ptr);
}