BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
klist_insert - insert an entry into the linked list
LIBRARY CALL
klist *klist_insert(
klist *list,
kaddr identifier,
kaddr client_data,
int position,
int duplicate_entries)
INPUT
- list - The current list in which we will be adding the
entry to
- identifier - The entry identifier to be added to the linked
list
- client_data - client data to be associated with the identifier
- position - where in the list to add the entry
- duplicate_entries - whether to be allowed multiple occurences
of an identifier on the linked list.
OUTPUT
none
RETURN VALUE
The head of the modified linked list.
DESCRIPTION
Inserts an entry into the linked list. This is done by
adding the entry to the end of the linked list
(if the list currently exists). The new list
is then 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.
The position field is used to indicate where in the
list an entry should be inserted:
KLIST_HEAD - insert at the head of the list
KLIST_PREV - insert previous to the current position
KLIST_NEXT - insert next from th current position
KLIST_TAIL - insert at the tail of the 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.