memcmp

[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl, SetLastError = true)]
public static extern int memcmp(
   IntPtr ptr1,
   IntPtr ptr2,
   size_t num
);

Microsoft documentation: Link

Last updated