win32/deps/ruby211/ext/dl/dl.c
/*
 * call-seq: DL.malloc(size)
 *
 * Allocate +size+ bytes of memory and return the integer memory address
 * for the allocated memory.
 */
call-seq: DL.malloc(size)
Allocate +size+ bytes of memory and return the integer memory address
for the allocated memory.
call - seq : DL . malloc ( size ) 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);
}
VALUE rb_dl_malloc ( VALUE self , VALUE size ) { void * ptr ; ptr = ( void * ) ruby_xmalloc ( NUM2INT ( size ) ) ; return PTR2NUM ( ptr ) ; }
call-seq: DL.malloc(size)
 Allocate +size+ bytes of memory and return the integer memory address
 for the allocated memory.
call - seq : DL . malloc ( size ) Allocate + size + bytes of memory and return the integer memory address for the allocated memory .