c string copy n characters code example Example: strncpy c char *strncpy(char *dest, const char *src, size_t n)