ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/CCSAdmin/turnin.c
Revision: 656
Committed: 2006-01-26T01:50:27-08:00 (19 years, 5 months ago) by douglas
Content type: text/x-c
File size: 461 byte(s)
Log Message:
Let's make a fake turnin, just for the fun of it.

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 656 longjmp(environment, (int)"Um, so, yeah, I'm guessing you want to be logged into a CSIL box.");
29 douglas 562
30     return 0;
31     }