BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

klist_tail - locate the tail of the linked list

LIBRARY CALL

klist *klist_tail(
   klist *list)

INPUT

OUTPUT

none

RETURN VALUE

The item's tail entry or NULL if the current list does not exist.

DESCRIPTION

Tries to locate the tail of the linked list, or last entry in the linked list. This is done by taking to current position and racing down the next links until the tail is found. The last klist structure is returned, NULL if the list is currently empty.

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.