|
NAMEradixsort , sradixsort —
radix sort
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <limits.h>
#include <stdlib.h>
int
int
DESCRIPTIONTheradixsort () and sradixsort ()
functions are implementations of radix sort.
These functions sort an array of pointers to byte strings, the initial member of which is referenced by base. The byte strings may contain any values; the end of each string is denoted by the user-specified value endbyte. Applications may specify a sort order by providing the
table argument. If non- The The These functions are variants of most-significant-byte radix sorting; in particular, see D.E. Knuth's Algorithm R and section 5.2.5, exercise 10. They take linear time relative to the number of bytes in the strings. RETURN VALUESTheradixsort () function returns the value 0 if
successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
ERRORS
Additionally, the SEE ALSOsort(1), qsort(3)Knuth, D.E., Sorting and Searching, The Art of Computer Programming, Vol. 3, pp. 170-178, 1968. Paige, R., Three Partition Refinement Algorithms, SIAM J. Comput., No. 6, Vol. 16, 1987. McIlroy, P., Computing Systems, Engineering Radix Sort, Vol. 6:1, pp. 5-27, 1993. HISTORYTheradixsort () function first appeared in
4.4BSD.
Visit the GSP FreeBSD Man Page Interface. |