/* In the case where the length of @src is less than that of count, the remainder of @dest will be padded with NUL.  */
char* strncpy(char *dest, const char *src, size_t count)
/* In the case where the length of @src is less than that of count, the remainder of @dest will be padded with NUL.  */
char* strncpy(char *dest, const char *src, size_t count)
{
	char *tmp = dest;
	while (count) {
		if ((*tmp = *src) != 0)
			src++;
		tmp++;
		count--;
	}
	return dest;
}