1 #include <string.h> 2 strncpy(char * restrict d,const char * restrict s,size_t n)3 char *strncpy(char *restrict d, const char *restrict s, size_t n) 4 { 5 __stpncpy(d, s, n); 6 return d; 7 } 8