Utilities/RB_malloc [ Functions ]

FUNCTION

like malloc, but exit if malloc failed

RETURN VALUE

See malloc

SOURCE

void               *RB_malloc(
    size_t bytes )
{
    void               *tmp;

    tmp = malloc( bytes );

    if ( tmp == NULL )
    {
        RB_Panic( "Unable to malloc %d bytes", bytes );
    }

    return tmp;
}