memcmp
compare objects
Synopsis
#include <string.h>
int memcmp(const void *s1, const void *s2, size_t n);
Description
The
function compares the first
memcmp
to by
and
s1
s2
greater than the
greater than the
Error Conditions
The
function does not return an error condition.
memcmp
Example
#include <string.h>
char string1 = "ABC";
char string2 = "BCD";
int result;
result = memcmp (string1, string2, 3);
See Also
strcmp, strcoll,
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
. It returns a positive value if the
object, a negative value if the
s2
object, and a zero if the objects are the same.
s1
strncmp
C/C++ Run-Time Library
characters of the objects pointed
n
object is lexically
s1
object is lexically
s2
/* result < 0 */
3-95
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?