ABL electronic PIC12 Benutzerhandbuch

Seite von 312
mikroC provides a set of standard ANSI C library functions useful for manipulat-
ing strings and arrays of 
char
.
Note: Not all of the standard functions have been included. Functions have been
implemented according to the ANSI C standard, but certain functions have been
modified in order to facilitate PIC programming.
memcmp
memcpy
memmove
memset
strcat
strchr
strcmp
strcpy
strlen
strncat
strncpy
strspn
MikroElektronika:  Development  tools  -  Books  -  Compilers
295
page
mikroC - C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
ANSI C String Library
Library Routines
Prototype
int
*memcmp(void *s1, void *s2, int n);
Description
Function compares the first 
n
characters of objects pointed to by 
s1
and 
s2
, and returns
zero if the objects are equal, or returns a difference between the first differing characters
(in a left-to-right evaluation). Accordingly, the result is greater than zero if the object
pointed to by 
s1
is greater than the object pointed to by 
s2
, and vice versa.
memcmp