klist_split - split a single linked list into two linked lists
LIBRARY CALL
int klist_split(
klist *entry,
klist **list1,
klist **list2)
INPUT
entry - the linked list entry in which we will be performing
the split
OUTPUT
list1 - If not NULL, then the head of the first linked list
is passed back.
list2 - If not NULL, then the head of the second linked list
is passed back.
RETURN VALUE
TRUE if we were able to split the linked list or
FALSE upon failure.
DESCRIPTION
Split a single linked list into two linked lists. Given
the entry in which we will break into the head of the
new second list. Since this is the head of the second
list and the head of the first list is really the
klist_head(entry), before the klist_split() routine is
called, it is not necessary to pass back the heads of
the two lists. But to make life easier if list1 or
list2 are not NULL the respective heads will be initialized
there.
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.