using System;
using System.Runtime.InteropServices;
namespace ConsoleApplication_C_Sharp
{
class Program
{
[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int memcmp(byte[] arr1, byte[] arr2, long count);
static void Main(string[] args)
{
var arr1 = new byte[] { 1, 2, 3, 4, 5 };
var arr2 = new byte[] { 1, 2, 3, 4, 5 };
bool b = arr1.Length == arr2.Length && memcmp(arr1, arr2, arr2.Length) == 0;
Console.WriteLine(b);
}
}
}
/*
run:
True
*/