qsort man page on Tru64

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

qsort(3)							      qsort(3)

NAME
       qsort - Sort a table in place

SYNOPSIS
       #include <stdlib.h>

       void qsort(
	       void *base,
	       size_t nmemb,
	       size_t size,
	       int (*compar)(const void *, const void *) );

LIBRARY
       Standard C Library (libc)

STANDARDS
       Interfaces  documented on this reference page conform to industry stan‐
       dards as follows:

       qsort():	 XPG4, XPG4-UNIX

       Refer to the standards(5) reference page	 for  more  information	 about
       industry standards and associated tags.

PARAMETERS
       Points  to  the	first  entry  in  the  table.  Specifies the number of
       entries in the table.  Specifies the size in bytes of each table entry.
       Points  to  the	user-specified function to be used to compare pairs of
       table elements. The comparison function will be called with two parame‐
       ters  that  point  to  the two elements to be compared.	The comparison
       function must return an integer less than, equal to,  or	 greater  than
       zero,  depending on whether the first element in the comparison is con‐
       sidered less than, equal to, or greater than the second element.

DESCRIPTION
       The qsort() function  sorts  a  table  having  a	 specified  number  of
       entries.	 The  contents	of  the	 table	are  sorted in ascending order
       according to a user-specified comparison function (the  strcmp()	 func‐
       tion, for example).

NOTES
       The  comparison function need not compare every byte, so arbitrary data
       may be contained in the elements in addition to the values  being  com‐
       pared.

       When  two  members  compare  equal,  their order in the sorted array is
       indeterminate.

SEE ALSO
       Functions: bsearch(3) lsearch(3)

       Standards: standards(5)

								      qsort(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Tru64

List of man pages available for Tru64

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