Chaz Meyers (cpm) wrote,
Chaz Meyers
cpm

The "x" in extra credit stands for "morbid". Um.. I mean "sucks". Or.. um.. "dragon".

// extra credit: catch ^C
void catch_int(int sig_num)
{
    // linux resets the handler when called. eeew.
    // not that it matters since we're exiting anyway...
    signal(SIGINT, catch_int);

    printf("\n\nYea, noise? then I'll be brief. O happy dagger!\n");
    printf("This is thy sheath;\n");
    printf("there rust, and let me die.\n");
    exit();
}
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 5 comments