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