core: do aligned transfers in bcopy32
[syslinux.git] / com32 / lib / memcmp.c
blobf6bc17286f0e4e7f758aa0bc5fec4dee0c300e65
1 /*
2 * memcmp.c
3 */
5 #include <string.h>
7 int memcmp(const void *s1, const void *s2, size_t n)
9 const unsigned char *c1 = s1, *c2 = s2;
10 int d = 0;
12 while ( n-- ) {
13 d = (int)*c1++ - (int)*c2++;
14 if ( d )
15 break;
18 return d;