News for hackers. Stuff that matters.
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 ;)

Re:A Simply Neat Example of Function Pointers in C by coliveira on Saturday January 16, 2010 @08:30AM (#1056888)
In C++ 0 and NULL are the same by definition. Just look at Stroustrup's C++ Style and Technique FAQ.
Re:A Simply Neat Example of Function Pointers in C by Imprecate on Saturday January 16, 2010 @10:10AM (#1056978)
Assigning the value 0 or NULL to a pointer does not necessarily set it to address 0.