SW500011 Microchip Technology, SW500011 Datasheet - Page 253

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
Library Functions
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()
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");
253

Related parts for SW500011