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