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