Re:A Simply Neat Example of Function Pointers in C
by nitrogen on Saturday January 16, 2010 @05:06AM
(#1056757)
Maybe because people know by now that C doesn't hold your hand :). The compiler did exactly what you told it to do. And, in fact, since C is frequently used for writing operating system code, what you wrote may actually be a valid operation if the OS maps critical functions into page 0 (which I believe some older systems did).
Re:A Simply Neat Example of Function Pointers in C
by jrockway on Saturday January 16, 2010 @07:47AM
(#1056857)
what you wrote may actually be a valid operation if the OS maps critical functions into page 0
Then you'd better not call it NULL. "0 and NULL are the same" was how I first got root on my phone ;)
Edit: I knew this would get downmodded :) Why does any post implying that type safety is good get downmodded?