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

# RtlCompareMemory(3w)

## NAME

**RtlCompareMemory** (NTDLL.@)

## SYNOPSIS

SIZE\_T RtlCompareMemory\
  (\
   const VOID\* *Source1*,\
   const VOID\* *Source2*,\
   SIZE\_T      *Length*\
  )

## DESCRIPTION

Compare one block of memory with another.

## PARAMS

*Source1* **\[In\]**  Source block.

*Source2* **\[In\]**  Block to compare to *Source1*.

*Length* **\[In\]**  Number of bytes to compare.

## RETURNS

The length of the first byte at which *Source1* and *Source2* differ, or *Length* if they are the same.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/ntdll/rtl.c"**.

Debug channel **"ntdll"**.
