2.1.2.69 _stricmp


Description

The _stricmp (alias stricmp) function compares lowercase versions of two character strings.

Syntax

int _stricmp( LPCSTR lpString1, LPCSTR lpString2 )

Parameters

lpString1
[input] Pointer to the first null-terminated string to be compared.
lpString2
[input] Pointer to the second null-terminated string to be compared.

Return

If the string pointed to by lpString1 is less than the string pointed to by lpString2, the return value is negative.

If the string pointed to by lpString1 is greater than the string pointed to by lpString2, the return value is positive.

If the strings are equal, the return value is zero.

Examples

EX1

void _stricmp_ex1()
{
    string    str1 = "hello world!";
    int     cmp = _stricmp(str1, "HELLO WORLD!");    // cmp equals 0.
    out_int("cmp = ", cmp);
}

Remark

See Also

Header to Include

origin.h

Reference