BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

karray_copy - copy an array of strings

LIBRARY CALL

<type> *karray_copy(
   <type> *array,
   int     type,
   size_t  num,
   int     copy_entries)

INPUT

OUTPUT

none

RETURN VALUE

a pointer to the new array, or NULL on error

DESCRIPTION

This module is used to copy the input array of strings into a new array. If the "copy_entries" parameter is TRUE, then each entry will also be copied rather than just copying the pointers.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

kmallocs the space for the new array

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/include/kutils/karray.h

SEE ALSO

kutils(3)

COPYRIGHT

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