qsort man page on Cygwin

Man page or keyword search:  
man Server   22533 pages
apropos Keyword Search (all sections)
Output format
Cygwin logo
[printable version]

QSORT(3)			    NEWLIB			      QSORT(3)

NAME
       2.31 `qsort'--sort an array

SYNOPSIS
	    #include <stdlib.h>
	    void qsort(void *BASE, size_t NMEMB, size_t SIZE,
		int (*COMPAR)(const void *, const void *) );

DESCRIPTION
       `qsort'	sorts  an  array  (beginning  at BASE) of NMEMB objects.  SIZE
       describes the size of each element of the array.

	  You must supply a pointer to a comparison function, using the	 argu‐
       ment shown as COMPAR.  (This permits sorting objects of unknown proper‐
       ties.)  Define the comparison function to accept two arguments, each  a
       pointer	to  an	element	 of the array starting at BASE.	 The result of
       `(*COMPAR)' must be negative if the first argument  is  less  than  the
       second,	zero  if  the  two  arguments match, and positive if the first
       argument is greater than the second (where  "less  than"	 and  "greater
       than" refer to whatever arbitrary ordering is appropriate).

	  The  array  is  sorted  in place; that is, when `qsort' returns, the
       array elements beginning at BASE have been reordered.

RETURNS
       `qsort' does not return a result.

PORTABILITY
       `qsort' is required by ANSI (without specifying the sorting algorithm).

SEE ALSO
       qsort is part of the library.  The full documentation for is maintained
       as  a Texinfo manual.  If info and are properly installed at your site,
       the command

	      info

       will give you access to the complete manual.

NEWLIB				  April 2010			      QSORT(3)
[top]

List of man pages available for Cygwin

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