mailing list of musl libc
 help / color / mirror / code / Atom feed
e228843f0bb394a209b764296e1df52fc8663344 blob 220 bytes (raw)

1
2
3
4
5
6
7
8
9
 
#include <string.h>

int strncmp(const char *_l, const char *_r, size_t n)
{
	const unsigned char *l=(void *)_l, *r=(void *)_r;
	if (!n--) return 0;
	for (; *l && *r && n && *l == *r ; l++, r++, n--);
	return *l - *r;
}
debug log:

solving e228843 ...
found e228843 in https://git.vuxu.org/mirror/musl/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).