The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Entry #100126 - Crash Calculator

Last post 06-11-2007 12:09 PM by Alex Papadimoulis. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-11-2007 12:09 PM

    Entry #100126 - Crash Calculator

    The code is not changed much from the GTK skeleton code. The big difference is that DoOperation() is now a void function. The function performs the appropriate calculation, then attempts to access the memory location at the floating-point representation of the answer, then we handle SIGSEGV to find the answer. There is also a SIGFPE handler to catch divide-by-zero. I LOLed
Page 1 of 1 (1 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems