[Home] [By Thread] [By Date] [Recent Entries]
> So Joe's claim looks exactly right: passing a const char array to a > function expecting a plain char array raises a warning; other combinations > do not. Granted that a cast will suppress this warning, but it will > suppress almost every type warning in C (you can't cast a function pointer > to something else, nor vice versa). I'm convinced. It was me who didn't know how it worked; actually, I did until I tried with a compiler claiming ANSI C conformance, got no warnings, re-read the standard and was misled to think it should allow this usage. David
|

Cart



