EasyManua.ls Logo

Texas Instruments TMS34010 - Page 72

Texas Instruments TMS34010
128 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
Loading...
strncmp
Syntax
Description
Compare
n
Characters
in
String
#include
<string.h>
char 'strncmp(string1 ,string2,n)
char
'string1,
'string2;
unsigned
int
n;
strncmp
This function compares
two
strings, character
by
character, and indicates
which
string
is
lower
in the ASCII character set. Only n characters
are
compared; if either string has less than n characters, the comparison stops
at the end
of
the shorter string. The indicators
are:
-1
if stringl
is
less than string2
o
if
stringl
is
equal
to
string2
1
if
string 1
is
greater than string2
6-21

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals