Part/RB_Get_RB_Part [ Functions ]

FUNCTION

Create a new RB_Part and initialize it.

SYNOPSIS

struct RB_Part* RB_Get_RB_Part( void  )

RESULT

A freshly allocated and initializedand RB_Part.

SOURCE

{
    struct RB_Part     *part = NULL;
    part = ( struct RB_Part * ) malloc( sizeof( struct RB_Part ) );
    if ( part )
    {
        part->next = NULL;
        part->filename = NULL;
        part->headers = NULL;
        part->last_header = NULL;
    }
    else
    {
        RB_Panic( "Out of memory! RB_Get_RB_Part()" );
    }
    return part;
}