soc/intel/skylake: Correct address of I2C5 Device
[coreboot.git] / src / lib / memcmp.c
blob46f13a41bdfeee509a21c7a06e8f0af5fd239b69
1 #include <string.h>
3 int memcmp(const void *src1, const void *src2, size_t bytes)
5 const unsigned char *s1, *s2;
6 int result;
7 s1 = src1;
8 s2 = src2;
9 result = 0;
10 while((bytes > 0) && (result == 0)) {
11 result = *s1 - *s2;
12 bytes--;
13 s1++;
14 s2++;
16 return result;