dlist.c
/*----------------------------------------------------------------------*/
/*    CreateLinkedDList();                                              */
/*                                                                      */
/*    Create and initialise a linked list                               */
/*----------------------------------------------------------------------*/
CreateLinkedDList();
Create and initialise a linked list
CreateLinkedDList () ; Create and initialise a linked list
dlist_t *CreateLinkedDList(void)
{
    dlist_t *p_list;
    if ((p_list = malloc(sizeof(dlist_t))) != NULL)
    {
        p_list->L_first = p_list->L_last = NULL;
        p_list->L_elements = 0L;
    }
    return p_list;
}
dlist_t * CreateLinkedDList ( void ) { dlist_t * p_list ; if ( ( p_list = malloc ( sizeof ( dlist_t ) ) ) != NULL ) { p_list -> L_first = p_list -> L_last = NULL ; p_list -> L_elements = 0L ; } return p_list ; }
CreateLinkedDList();
Create and initialise a linked list
CreateLinkedDList () ; Create and initialise a linked list