Qsort - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

qsort

quicksort
Synopsis
#include <stdlib.h>
void qsort(void *base, size_t nelem, size_t size,
int (*compare) (const void *, const void *));
Description
The
function sorts an array of
qsort
The size of each object is specified by
The contents of the array are sorted into ascending order according to a
comparison function pointed to by
arguments that point to the objects being compared. The function shall
return an integer less than, equal to, or greater than zero if the first argu-
ment is considered to be respectively less than, equal to, or greater than
the second.
If two elements compare as equal, their order in the sorted array is unspec-
ified. The
qsort
pre-sorted array. Note that:
points to the start of the array
base
is the number of elements in the array
nelem
is the size of each element of the array
size
compare
pare two elements of the array. The function should return a value
less than, equal to, or greater than zero, according to whether the
first argument is less than, equal to, or greater than the second.
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
function executes a binary search operation on a
is a pointer to a function that is called by
C/C++ Run-Time Library
objects, pointed to by
nelem
.
size
, which is called with two
compare
.
base
to com-
qsort
3-105

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents