SW500008 Microchip Technology, SW500008 Datasheet - Page 276

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
STRCMP, STRICMP
Synopsis
Description
The strcmp() function compares its two, null terminated, string arguments and returns a signed
integer to indicate whether s1 is less than, equal to or greater than s2. The comparison is done with
the standard collating sequence, which is that of the ASCII character set.
Example
See Also
strlen(), strncmp(), strcpy(), strcat()
262
The stricmp() function is the case-insensitive version of this function.
#include <string.h>
int strcmp (const char * s1, const char * s2)
int stricmp (const char * s1, const char * s2)
#include <string.h>
#include <stdio.h>
void
main (void)
{
}
int i;
if((i = strcmp("ABC", "ABc")) < 0)
else if(i > 0)
else
printf("ABC is less than ABc\n");
printf("ABC is greater than ABc\n");
printf("ABC is equal to ABc\n");
Library Functions

Related parts for SW500008