ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/CCSAdmin/turnin.c
Revision: 806
Committed: 2006-06-28T19:53:21-07:00 (19 years ago) by douglas
Content type: text/x-c
File size: 462 byte(s)
Log Message:
Master!

File Contents

# User Rev Content
1 douglas 562 // Douglas Thrift
2     //
3     // CCS Computer Science
4     //
5 douglas 656 // Turn In Stub
6 douglas 562
7     #include "common.h"
8    
9     int main(int argc, char *argv[])
10     {
11     int exception;
12     jmp_buf environment;
13    
14     switch (exception = setjmp(environment))
15     {
16     case 0:
17     break;
18     case 1:
19     perror(argv[0]);
20    
21     return 1;
22     default:
23     fprintf(stderr, "%s: %s\n", argv[0], (char *)exception);
24    
25     return 1;
26     }
27    
28 douglas 806 longjmp(environment, (int)"Um, so, yeah, I'm guessing you want to be logged in to a CSIL box.");
29 douglas 562
30     return 0;
31     }