Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->_stricmp()

Summary

#include <string.h>

char *_stricmp(const char* string1, const char* string2);Case insensitive compare of one string with another

Parameter

    
string1Pointer to first string
string2Pointer to second string

Description

This function lexicographically compares string2 with string1.  If the characters are different each is converted to upper case if it is lower case before the function returns.

Both string1 and string2 must be null terminated strings.


Return Value
    
ValueMeaning
Less than 0string1 less than string2
0string1 identical to string2
Greater than 0string1 greater than string2