basics · beginner · ~15 min
Copy bytes until and including the NUL.
Implement void str_copy(char *dst, const char *src) copying src into dst including the terminating NUL. dst is large enough.
void str_copy(char *dst, const char *src) {
/* TODO */
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.