Write a safe my_strncpy.
Naive `strcpy` is a classic CVE source. Implement a bounded copy:
```c
char *my_strncpy(char *dst, const char *src, size_t n);
```
Copy at most n characters; pad with '\0' if src is shorter. Return dst.
Sign in to save your code and track progress across devices.