mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 03:29:49 +00:00
9bd9755dbb
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
16 lines
261 B
C
16 lines
261 B
C
/*
|
|
*
|
|
* (c) 2004,2005 Laurent Vivier <Laurent@Vivier.EU>
|
|
*
|
|
*/
|
|
|
|
#include <sys/types.h>
|
|
|
|
char *strncpy (char *__restrict __dest,
|
|
__const char *__restrict __src, size_t __n)
|
|
{
|
|
while ( (*__dest ++ = *__src++) && __n--);
|
|
|
|
return __dest;
|
|
}
|