<type> *karray_copy(
<type> *array,
int type,
size_t num,
int copy_entries)
INPUT
array - the array that is to be sorted
num - the number of entries in the array
copy_entries - whether to kmalloc and copy each entry or not
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.