scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <string.h>
 2
 3#undef memcmp
 4
 5int
 6memcmp(const void *s1, const void *s2, size_t n)
 7{
 8	const unsigned char *s = s1;
 9	const unsigned char *t = s2;
10
11	for (; n > 0 && *s == *t; --n)
12		++s, ++t;
13
14	return (n > 0) ? *s - *t : 0;
15}