BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

karray_sort - sort an array

LIBRARY CALL

<type> *karray_sort(
  <type> *array,
  int     type,
  size_t  num,
  int     duplicates)

INPUT

OUTPUT

none

RETURN VALUE

The pointer to the header of the sorted array; NULL on failure

DESCRIPTION

Sorts a string array into ascending order.

Other array utilities support arrays of a variety of data types. The karray_sort() routine, however, can only be used with string arrays.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

The sorted array passed back is the same as the original array passed in. So original input array should not be sorted.

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.