qsort.3f

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3F 代码 · 共 67 行

3F
67
字号
.\" SCCSID: @(#)qsort.3f	8.1	9/11/90.TH qsort 3f VAX "" Unsupported.SH Nameqsort \- quick sort.SH Syntax.B subroutine qsort (array, len, isize, compar).br.B external compar.br.B integer*2 compar.SH Description.NXR "qsort subroutine (FORTRAN)".NXR "sort routine"One dimensional.I arraycontains the elements to be sorted.The.I lenis the number of elements in the array.The.I isizeis the size of an element, typically: .sp 1.in +54 for.B integerand.B real.br8 for.B "double precision"or.B complex.br16 for.B "double complex".br(length of character object) for.B characterarrays.in \-5.sp 1The.I comparis the name of a user supplied integer*2 functionthat will determine the sorting order.This function will be called with two arguments that will be elements of.I array.The function must return:.sp 1.in +5negative if arg 1 is considered to precede arg 2.brzero if arg 1 is equivalent to arg 2.brpositive if arg 1 is considered to follow arg 2.in \-5.sp 1On return, the elements of.I arraywill be sorted..SH Files.ie \nM /usr/ucb/lib/libU77.a.el /usr/lib/libU77.a.SH See Alsoqsort(3)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?