EasyManuals Logo
Home>Texas Instruments>Computer Hardware>TMS34010

Texas Instruments TMS34010 Reference Guide

Texas Instruments TMS34010
181 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #135 background imageLoading...
Page #135 background image
qsort
Syntax
#include
<stdlib.h>
void
qsort
(base,
nmemb,
size,
compar)
void
*base;
size-t
nmemb,
size;
int
(*compar)();
Array
Sort
Defined
in
qsort.
c in
rts.
src
Description
The qsort function sorts
an
array
of
nmemb members. Argument
base
points to the first member
of
the unsorted array; argument
size
specifies
the size
of
each member.
6-60
This function sorts the array in ascending order.
Argument
compar
points
to
a function that compares
key
to
the array el-
ements. The comparison function should
be
declared
as:
int
cmp{ptrl,
ptr2)
void
*ptrl,
*ptr2;
The cmp function compares the objects that
ptrl
and
ptr2
point to, and
returns one
of
the following values:
< 0
if
*ptrl
is
less
than
*ptr2.
o
if
*ptrl
is
equal
to
*ptr2.
> 0
if
*ptrl
is
greater than
*ptr2.

Table of Contents

Other manuals for Texas Instruments TMS34010

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS34010 and is the answer not in the manual?

Texas Instruments TMS34010 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS34010
CategoryComputer Hardware
LanguageEnglish

Related product manuals