summaryrefslogtreecommitdiff
path: root/static/unix-v10/man3/qsort.3
diff options
context:
space:
mode:
Diffstat (limited to 'static/unix-v10/man3/qsort.3')
-rw-r--r--static/unix-v10/man3/qsort.342
1 files changed, 42 insertions, 0 deletions
diff --git a/static/unix-v10/man3/qsort.3 b/static/unix-v10/man3/qsort.3
new file mode 100644
index 00000000..54ddebe1
--- /dev/null
+++ b/static/unix-v10/man3/qsort.3
@@ -0,0 +1,42 @@
+.pa 1
+.he 'QSORT (III)'6/12/72'QSORT (III)'
+.ti 0
+NAME qsort -- quicker sort
+.sp
+.ti 0
+SYNOPSIS (base of data in r1)
+.br
+(end+1 of data in r2)
+.br
+(element width in r3)
+.br
+jsr pc,qsort
+.sp
+.ti 0
+DESCRIPTION qsort_____
+is an implementation
+of the quicker sort algorithm.
+It is designed to sort equal length
+elements.
+Registers r1 and r2 delimit the region of
+core containing the array of byte strings to be sorted:
+r1 points to the start of the first string, r2 to the first
+location above the last string.
+Register r3 contains the length of each string.
+r2-r1 should be a multiple of r3.
+On return, r0, r1, r2, r3, r4 are destroyed.
+.sp
+The routine compar (q.v.) is called to compare elements
+and may be replaced by the user.
+.sp
+.ti 0
+FILES kept in /lib/liba.a
+.sp
+.ti 0
+SEE ALSO compar(III)
+.sp
+.ti 0
+DIAGNOSTICS --
+.sp
+.ti 0
+BUGS It scribbles on r4.