5 ms·
If every C programmer knew, then there would be no need to ban them
by bhk 7y ago
If every C programmer knew, then there would be no need to ban them
- asveikau 7y agoI actually wonder why they do it. Linkers already warn for this stuff. Doing it this way requires every source file to include banned.h, which I would guess is done by including it from some other common header, but that's not fool proof either.
- ncmncm 7y agoNot knowing defines you as not a C programmer. That doesn't stop many people from trying to code C anyway... I have seen strtok used, even though it takes more code to use it correctly than not use it. strlcpy is like that, too. Of course, what happens is nobody uses them correctly.
- Dylan16807 7y agoThat's not true. People don't staunchly avoid situations that have pointless sharp edges. Putting up caution tape, despite everyone being aware of the danger, is very often a useful activity.