rs-libc 0.2.5

A subset of libc that can be used with Rust in freestanding environments.
Documentation
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;
}