Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ qsort(3F) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

qsort(3c)



QSORT(3F)               COMMAND REFERENCE               QSORT(3F)



NAME
     qsort - quick sort

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

DESCRIPTION
     Qsort is an implementation of the quicker-sort algorithm.
     One dimensional array contains the elements to be sorted.
     Len is the number of elements in the array.  Isize is the
     size (or width) of an element in bytes, typically:


          4              For integer and real.
          8              For double precision or complex.
          16             For double complex.
          length of
          character object    For character arrays.

     Compar is the name of a user supplied integer*2 comparison
     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:


          negative  If arg1 is considered to percede arg2.
          zero      If arg1 is equivalent to arg2.
          positive       If arg1 is considered to follow arg2.

     On return, the elements of array will be sorted.

FILES
     /usr/lib/libU77.a        f77 UTek system interface library.

RETURN VALUE
     On return, the elements of array will be sorted.

SEE ALSO
     qsort(3c).













Printed 10/17/86                                                1





































































%%index%%
na:72,54;
sy:126,679;
de:805,1259;
fi:2064,146;
rv:2210,144;
se:2354,91;
%%index%%000000000106

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