BSD 4_2 development
[unix-history] / usr / man / man3 / qsort.3
CommitLineData
f132d4ec
C
1.TH QSORT 3 "19 January 1983"
2.UC 4
3.SH NAME
4qsort \- quicker sort
5.SH SYNOPSIS
6.nf
7.B qsort(base, nel, width, compar)
8.B char *base;
9.B int (*compar)();
10.fi
11.SH DESCRIPTION
12.I Qsort
13is an implementation of the quicker-sort algorithm.
14The first argument is a pointer to the base of the data;
15the second is the number of elements;
16the third is the width of an element in bytes;
17the last is the name of the comparison routine
18to be called with two arguments which are pointers
19to the elements being compared.
20The routine must return an integer less than, equal to, or greater than 0
21according as the first argument is to be considered
22less than, equal to, or greater than the second.
23.SH "SEE ALSO"
24sort(1)