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
10
11
12
13
14
15
16
#include <string.h>

char *__stpcpy(char *, const char *);

char *strcpy(char *restrict dest, const char *restrict src)
{
#if 1
	__stpcpy(dest, src);
	return dest;
#else
	const unsigned char *s = src;
	unsigned char *d = dest;
	while ((*d++ = *s++));
	return dest;
#endif
}