News for hackers. Stuff that matters.
Re:ISO C is increasingly moronic by nyellin on Tuesday December 20, 2011 @03:42PM (#3375048)
As ugly as it is, even the printf()/scanf() format strings could be improved, by offering a sensible plugin mechanism, which the compiler can understand and use to issue warnings.

gcc allows this with the 'format' attribute: http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#F...

Re:ISO C is increasingly moronic by phkamp on Tuesday December 20, 2011 @03:45PM (#3375057)
Yes, but gcc gives you no way to explain to the compiler that %Q takes a struct foobar* as argument, so either you don't use extensions, and have the seatbelts provided by -Wformat, or you use extensions and have no seatbelts at all.