quvi Linked list API

Summary
quvi Linked list API
Functions
quvi_llst_appendAppends (or creates a new list) a element to a linked-list.
quvi_llst_sizeReturns the number of nodes in the linked list.
quvi_llst_nextReturns the next node in the linked list.
quvi_llst_dataReturns a pointer to the node data.
quvi_llst_freeReleases memory allocated by the linked list.

Functions

quvi_llst_append

QUVIcode quvi_llst_append(quvi_llst_node_t *l,
void *data)

Appends (or creates a new list) a element to a linked-list.

Parameters

nodeHandle to a linked list or NULL to create new list
dataData to append to the list

Returns

Non-zero value if an error occurred.

See Also

quvi_llst_size

size_t quvi_llst_size(quvi_llst_node_t l)

Returns the number of nodes in the linked list.

Parameters

nodeHandle to a linked list node

Returns

Number of nodes in list.

quvi_llst_next

quvi_llst_node_t quvi_llst_next(quvi_llst_node_t l)

Returns the next node in the linked list.

Parameters

nodeHandle to a linked list node

Returns

Handle to the next node in the list, otherwise NULL.

quvi_llst_data

void *quvi_llst_data(quvi_llst_node_t l)

Returns a pointer to the node data.

Parameters

nodeHandle to a linked list node

Returns

Pointer to the node data.

quvi_llst_free

void quvi_llst_free(quvi_llst_node_t *l)

Releases memory allocated by the linked list.

Parameters

nodeHandle to a linked list node
QUVIcode quvi_llst_append(quvi_llst_node_t *l,
void *data)
Appends (or creates a new list) a element to a linked-list.
size_t quvi_llst_size(quvi_llst_node_t l)
Returns the number of nodes in the linked list.
quvi_llst_node_t quvi_llst_next(quvi_llst_node_t l)
Returns the next node in the linked list.
void *quvi_llst_data(quvi_llst_node_t l)
Returns a pointer to the node data.
void quvi_llst_free(quvi_llst_node_t *l)
Releases memory allocated by the linked list.
Basic use, initialize new session and parse URL.
Close