BOOTSTRAP (
kutils
) functions
LIBRARY ROUTINE
klist_to_array - convert the linked list into an array
LIBRARY CALL
char **klist_to_array( klist *list, size_t *num)
INPUT
list
- The current linked list in which the array of identifiers will be created.
OUTPUT
num
- The number of entries in the array.
RETURN VALUE
The newly malloc'ed array or NULL upon failure
DESCRIPTION
Creates an array from a linked list. This is done by malloc'ing an array of pointers and then loading the assigning the identifiers into each array.
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.