1QSORT(3F)                                                            QSORT(3F)
2
3
4

NAME

6       qsort - quick sort
7

SYNOPSIS

9       subroutine qsort (array, len, isize, compar)
10       external compar
11       integer*2 compar
12

DESCRIPTION

14       One  dimensional  array contains the elements to be sorted.  len is the
15       number of elements in the array.  isize is the size of an element, typ‐
16       ically -
17
18            4 for integer and real
19            8 for double precision or complex
20            16 for double complex
21            (length of character object) for character arrays
22
23       Compar  is  the  name  of  a user supplied integer*2 function that will
24       determine the sorting order.  This function will be called with 2 argu‐
25       ments that will be elements of array.  The function must return -
26
27            negative if arg 1 is considered to precede arg 2
28            zero if arg 1 is equivalent to arg 2
29            positive if arg 1 is considered to follow arg 2
30
31       On return, the elements of array will be sorted.
32

FILES

34       /usr/lib/libU77.a
35

SEE ALSO

37       qsort(3)
38
39
40
414.2 Berkeley Distribution        May 15, 1985                        QSORT(3F)
Impressum