Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

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 objectFor 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 3/13/89                                                 1



%%index%%
na:288,70;
sy:358,1047;
de:1405,1309;
fi:2714,191;
rv:2905,188;
se:3093,120;
%%index%%000000000110

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