C Array Utilities
Functions | |
cxint | giraffe_array_sort (cxdouble *array, cxsize size) |
Sorts an array in ascending order. |
Detailed Description
TBD
Function Documentation
cxint giraffe_array_sort | ( | cxdouble * | array, | |
cxsize | size | |||
) |
Sorts an array in ascending order.
- Parameters:
-
array The array to sort. size The array size.
- Returns:
- The function returns 0 on success and -1 otherwise
The function sorts the first size elements of array in ascending order. During sorting the elements of array are reshuffled so that on return the contents of array is sorted. The number of elements size to be sorted may be less than the actual array size.