BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
klist_add - add an entry into the linked list
LIBRARY CALL
klist *klist_add (
klist *list,
kaddr identifier,
kaddr client_data)
INPUT
- list - The current list in which we will be adding the
entry to (if NULL then return the newly
malloc'ed head).
- identifier - The entry identifier to be added to the linked
list
- client_data - client data to be associated with the identifier
OUTPUT
none
RETURN VALUE
The modified linked list.
DESCRIPTION
Adds an entry to the linked list. This is done by
adding the entry to the end of the linked list
(if the list currently exists). If the list is
currently NULL then the new item is returned as the
head of the list. If the list is not NULL then
the original list is passed back to the calling
routine.
The routine first scans the list to make sure the
identifier is not already on the list, if so then we
don't change original list.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/list.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.