| ▲ | CamperBob2 3 hours ago | |||||||
The only correct answer to this interview question is "No." | ||||||||
| ▲ | anitil an hour ago | parent | next [-] | |||||||
Well in an interview I guess something like "Of course we shouldn't allow C-strings in general outside of syscalls and argv, but for the purpose of the exercise...." And now you've shown that you know what you're talking about and that you won't be difficult to work with. | ||||||||
| ▲ | HarHarVeryFunny an hour ago | parent | prev | next [-] | |||||||
/* YOLO */ while (*to++ = *from++) ; | ||||||||
| ▲ | sgerenser 3 hours ago | parent | prev [-] | |||||||
Hey, in 2026 strcpy is still part of the C standard library (much to the chagrin of anyone security conscious). | ||||||||
| ||||||||