BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

karray_to_list - convert an array into a linked list

LIBRARY CALL

klist *karray_to_list(
  <type> *array,
  int     type,
  size_t  num)

INPUT

OUTPUT

none

RETURN VALUE

The newly created linked list on success, NULL upon failure

DESCRIPTION

Creates a linked list from an array. The resulting list may be used with the Khoros linked list utilities, such as klist_add(), klist_insert(), klist_delete(), klist_copy(), and so on.

The array utilities, including karray_to_list(), support arrays of a variety of data types. The data type of the array being used is specified with the 'type' parameter; supported data types include:

KBYTE - array of characters KUBYTE - array of unsigned characters KSHORT - array of short integers KUSHORT - array of unsigned short integers KINT - array of integers KUINT - array of unsigned integers KLONG - array of long integers KULONG - array of unsigned long integers KFLOAT - array of floating point numbers KDOUBLE - array of double precision numbers KSTRING - array of strings KSTRUCT - array of pointers to structures KLOGICAL - array of TRUE/FALSE values

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/array.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.