Darren New <dne### [at] san rr com> wrote:
> Warp wrote:
> > (Another less fancy way would be to return a null pointer from the
> > function, in which case the program will end with a segmentation fault.)
> Well, maybe if you're lucky. :-) Otherwise, it just goes off happily
> executing whatever is at memory address zero (or whatever NULL maps to).
I'm pretty sure POSIX or some other type of standard states that jumping
to the null pointer will always cause a segmentation fault.
--
- Warp
Post a reply to this message
|