EMILE/libunix/strncpy.c
2005-11-08 02:04:54 +00:00

10 lines
195 B
C

#include <sys/types.h>
char *strncpy (char *__restrict __dest,
__const char *__restrict __src, size_t __n)
{
while ( (*__dest ++ = *__src++) && __n--);
return __dest;
}