GIRAFFE Pipeline Reference Manual

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.

Definition at line 177 of file giarray.c.


This file is part of the GIRAFFE Pipeline Reference Manual 2.9.0.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Jan 26 14:20:30 2012 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004