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