Utilities/RB_Alloc_Header [ Functions ]

FUNCTION

allocate the struct RB_header

SYNOPSIS

struct RB_header   *RB_Alloc_Header(
    void )

RESULT

struct RB_header * -- all attributes/pointers set to zero

AUTHOR

Koessi

SEE ALSO

RB_Free_Header()

SOURCE

{
    struct RB_header   *new_header;

    if ( ( new_header = malloc( sizeof( struct RB_header ) ) ) != NULL )
    {
        memset( new_header, 0, sizeof( struct RB_header ) );
    }
    else
    {
        RB_Panic( "out of memory! [Alloc Header]\n" );
    }
    return ( new_header );
}