NAME
List -- a number of list manipulating functions.
NAME
numberOfElementsF --
NAME
add2ListF --
NAME
freelist -- free all members in a list
NAME
addListF --
NAME
insertListF --
NAME
findElementF --
SYNOPSIS
list *findElementF(list *aList, char *name)
FUNCTION
Find an element in a list based on the name of the element.
INPUTS
aList -- pointer to the first element in the list. name -- name of the element to find.
RESULT
Address of the element or NULL in case the element was not found.
NAME
removeListF -
FUNCTION
Remove an element from a list. NOTE Do not use this function directly, use the macro remList()
SEE ALSO
remList()
NAME
ptonum -- convert pointer to index number
SYNOPSIS
void *ptonum(void *base, void *target)
FUNCTION
Gives the index number of an element in a list.
INPUTS
base - base address of the list target - the element
RESULT
the index number of the element.
SEE ALSO
numtop()
NAME
numtop -- convert index number to pointer
SYNOPSIS
void *numtop(void *base, int n)
FUNCTION
Look up an element in a list using it's index number.
INPUTS
base - base address of the list n - index number
RESULT
address of the element.
NAME
setNameF
FUNCTION
Set the name of an element in a list. NOTE Do not use this function directly, use the macro setName()
SEE ALSO
setName()