qsort man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

qsort(3C)							     qsort(3C)

NAME
       qsort() - quicksort

SYNOPSIS
DESCRIPTION
       is  an  implementation of the quicksort algorithm.  It sorts a table of
       data in place.

	      base	  Pointer to the element at the base of the table.

	      nel	  Number of elements in the table.

	      size	  Size of each element in the table.

	      compar	  Name of the comparison  function,  which  is	called
			  with	two arguments that point to the elements being
			  compared.  The function passed as compar must return
			  an  integer  less  than,  equal  to, or greater than
			  zero, according to whether its first argument is  to
			  be  considered  less than, equal to, or greater than
			  the second.  uses this same return  convention  (see
			  string(3C)).

NOTES
       The  pointer to the base of the table should be of type pointer-to-ele‐
       ment, and cast to type pointer-to-void.

       The comparison function need not compare every  byte;  thus,  arbitrary
       data  can  be contained in the elements in addition to the values being
       compared.

       The order in the output of two items which compare as equal  is	unpre‐
       dictable.

WARNINGS
       If size is zero, a divide-by-zero error might be generated.

SEE ALSO
       sort(1), bsearch(3C), lsearch(3C), string(3C), thread_safety(5).

STANDARDS CONFORMANCE
								     qsort(3C)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net