mikroC

making it simple...

ANSI C String Library

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC provides a set of standard ANSI C library functions useful for manipulating 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.

Library Routines

memcmp memcpy memmove memset strcat strchr strcmp strcpy strlen strncat strncpy strspn

memcmp

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.

 

 

page

 

MikroElektronika: Development tools - Books - Compilers

295