>> make a typo in a C program, the program stops and says "error:
>> segmantation fault".
>
> *If* you're lucky. What's worse is when it *doesn't*. :-)
Worse Than Failure.
>> As far as I'm aware, you cannot catch segfaults.
>
> You can, but not in a portable way.
I had a feeling the OS might provide a way to do this. (Presumably
that's how the shell tells you your program segfaulted.) And that would
make it OS-dependent...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|