2 * memcmp.c: memcmp compat implementation.
4 * Copyright (c) 2010, NLnet Labs. All rights reserved.
6 * See LICENSE for the license.
11 int memcmp(const void *x, const void *y, size_t n);
13 int memcmp(const void *x, const void *y, size_t n)
15 const uint8_t* x8 = (const uint8_t*)x;
16 const uint8_t* y8 = (const uint8_t*)y;
21 else if(x8[i] > y8[i])