FreeBASIC  0.91.0
listdyn.c File Reference
#include "fb.h"
Include dependency graph for listdyn.c:

Go to the source code of this file.

Functions

void fb_hListDynInit (FB_LIST *list)
 Initializes a list. More...
 
void fb_hListDynElemAdd (FB_LIST *list, FB_LISTELEM *elem)
 Adds an element to the list. More...
 
void fb_hListDynElemRemove (FB_LIST *list, FB_LISTELEM *elem)
 Remove an element from the list. More...
 

Function Documentation

void fb_hListDynElemAdd ( FB_LIST list,
FB_LISTELEM elem 
)

Adds an element to the list.

This function adds a list element to the list. It's up to the caller to allocate the memory required by this element.

Parameters
listPointer to the list structure.
elemPointer to the element to add to the list.

Definition at line 25 of file listdyn.c.

Here is the caller graph for this function:

void fb_hListDynElemRemove ( FB_LIST list,
FB_LISTELEM elem 
)

Remove an element from the list.

This function removes a list element from the list. It's up to the caller to free the memory allocated by this element.

Parameters
listPointer to the list structure.
elemPointer to the element to remove from the list.

Definition at line 48 of file listdyn.c.

Here is the caller graph for this function:

void fb_hListDynInit ( FB_LIST list)

Initializes a list.

This list implementation doesn't care where the data will be stored to. It's up to the caller to do all memory operations.

Parameters
listPointer to list structure to initialize.

Definition at line 12 of file listdyn.c.

Here is the caller graph for this function: