3 ms·
> strcpy ... BANNED But they cannot ban while (* p++ = * q++); now can they.
by Koshkin 7y ago
> strcpy ... BANNED
But they cannot ban while (* p++ = * q++); now can they.
- LukeShu 7y agoIt's not meant to be a substitute for humans reviewing patches. It's just meant to catch things new contributors are likely to try to use, and give them feedback on it before they send the patch to the mailing list.
- rat9988 7y agoTruly curious as I don't code in C, or any other low level language. What is the problem with it? That there might not be enough memory allocated at *q?
- zsrxx 7y agoIt doesn't stop until *p is \0, so yes
- microtherion 7y agoNot enough memory at *p. The loop performs the exact same function that strcpy does, and some people just write it out by hand.