.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)qsort.3f 6.1 (Berkeley) 5/15/85
.TH QSORT 3F "May 15, 1985"
.B subroutine qsort (array, len, isize, compar)
contains the elements to be sorted.
is the number of elements in the array.
is the size of an element, typically -
(length of character object) for
is the name of a user supplied integer*2 function
that will determine the sorting order.
This function will be called with 2 arguments that will be elements of
The function must return -
negative if arg 1 is considered to precede arg 2
zero if arg 1 is equivalent to arg 2
positive if arg 1 is considered to follow arg 2
On return, the elements of
.ie \nM /usr/ucb/lib/libU77.a