#include "usr_lib_define.h"
#include <string.h>

_LIBC_TEXT_SECTION int memcmp(const void *vl, const void *vr, size_t n)
{
	const unsigned char *l=vl, *r=vr;
	for (; n && *l == *r; n--, l++, r++);
	return n ? *l-*r : 0;
}
