mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-14 22:04:43 +00:00
16 lines
264 B
C
16 lines
264 B
C
/*
|
|
*
|
|
* (c) 2004,2005 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
|
|
#include <sys/types.h>
|
|
|
|
char *strncpy (char *__restrict __dest,
|
|
__const char *__restrict __src, size_t __n)
|
|
{
|
|
while ( (*__dest ++ = *__src++) && __n--);
|
|
|
|
return __dest;
|
|
}
|