Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ qsort(3F) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

qsort(3C)

qsort(3F)

NAME

qsort − quick sort

SYNOPSIS

subroutine qsort (array, len, isize, compar)
external compar
integer∗2 compar

DESCRIPTION

One dimensional array contains the elements to be sorted.  len is the number of elements in array.  isize is the size of an element, typically:

4for integer and real;
8for double precision or complex;
16for double complex;
(length of character object) for character arrays.

compar is the name of a user supplied integer∗2 function that will determine the sorting order.  This function will be called with two arguments that will be elements of array.  The function must return:

negativeif arg 1 is considered to precede arg 2;
zeroif arg 1 is equivalent to arg 2;
positiveif arg 1 is considered to follow arg 2.

On return, the elements of array will be sorted. 

FILES

/usr/lib/libU77.a

SEE ALSO

qsort(3C)

NOTES

When compiling source with the -Qocs option, this routine is not accessible because it takes a procedure argument, which is passed differently under the 88Open OCS standard. 

CX/UX Hf77 Fortran Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026