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

OUTPUT

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.