.TH QSORT 3F .UC .SH NAME qsort \- quick sort .SH SYNOPSIS .B subroutine qsort (array, len, isize, compar) .br .B external compar .br .B integer*2 compar .SH DESCRIPTION One dimensional .I array contains the elements to be sorted. .I len is the number of elements in the array. .I isize is the size of an element, typically - .sp 1 .in +5 4 for .B integer and .B real .br 8 for .B "double precision" .br (length of character object) for .B character arrays .in -5 .sp 1 .I Compar is the name of a user supplied integer*2 function. This function will be called with 2 arguments that will be elements of .I array. The function must return - .sp 1 .in +5 negative if arg 1 is logically less than arg 2 .br zero if arg 1 is logically equal to arg 2 .br positive if arg 1 is logically greater than arg 2 .in -5 .sp 1 On return, the elements of .I array will be sorted. .SH FILES /usr/lib/libU77.a .SH "SEE ALSO" qsort(3)