Logo Search packages:      
Sourcecode: librasterlite version File versions  Download package

list_node* alloc_list_node ( int  data_size )

Allocate new list node

This function allocates new list node with associated data block of size data_size.

New node pointer

Definition at line 54 of file list.c.

References list_node_tag::data, list_node_tag::next, list_node_tag::prev, and xmalloc().

Referenced by speck_decode_I(), speck_decode_S(), speck_encode_I(), speck_encode_S(), and speck_init().

    list_node *node;

    node = (list_node *) xmalloc(sizeof(list_node));
    node->data = xmalloc(data_size);
    node->next = node->prev = NULL;

    return node;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index