StrIsIntlEqualA function

Compares a specified number of characters from the beginning of two strings to determine if they are equal.

Syntax

BOOL StrIsIntlEqualA(
  BOOL  fCaseSens,
  PCSTR pszString1,
  PCSTR pszString2,
  int   nChar
);

Parameters

fCaseSens

Type: BOOL

The case sensitivity of the comparison. If this value is nonzero, the comparison is case-sensitive. If this value is zero, the comparison is not case-sensitive.

pszString1

Type: PCTSTR

A pointer to the first null-terminated string to be compared.

pszString2

Type: PCTSTR

A pointer to the second null-terminated string to be compared.

nChar

Type: int

The number of characters from the beginning of each string to be compared.

Return Value

Type: BOOL

TRUE if the first nChar characters from the two strings are equal; otherwise, FALSE.

Remarks

You can set case sensitivity with the StrIntlEqN and StrIntlEqNI macros. StrIntlEqN performs a case-sensitive comparison, and StrIntlEqNI performs a case-insensitive comparison.

The syntax of the two macros is:

#define StrIntlEqN(s1, s2, nChar) StrIsIntlEqual(TRUE, s1, s2, nChar)
#define StrIntlEqNI(s1, s2, nChar) StrIsIntlEqual(FALSE, s1, s2, nChar)

Requirements

   
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 4.71 or later)