method
malloc
ruby latest stable - Class:
Fiddle
malloc(p1)public
Allocate size bytes of memory and return the integer memory address for the allocated memory.
static VALUE
rb_fiddle_malloc(VALUE self, VALUE size)
{
void *ptr;
ptr = (void*)ruby_xmalloc(NUM2SIZET(size));
return PTR2NUM(ptr);
}