---
name: "lstrcmpA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/lstrcmpA"
---

# lstrcmpA(3w)

## NAME

**lstrcmpA** (KERNEL32.@)

## SYNOPSIS

int lstrcmpA\
  (\
   LPCSTR *str1*,\
   LPCSTR *str2*\
  )

## DESCRIPTION

Compare two strings using the current thread locale.

## PARAMS

*str1* **\[In\]**  First string to compare.

*str2* **\[In\]**  Second string to compare.

## RETURNS

**Success:** A number less than, equal to or greater than **0** depending on whether *str1* is less than, equal to or greater than *str2* respectively.

**Failure:** **FALSE**. Use **[GetLastError(3w)](/GetLastError/3w.md)** to determine the cause.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

Implemented in **"dlls/kernel32/locale.c"**.

Debug channel **"nls"**.
