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

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.