author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Tue, 07 Oct 2014 00:12:29 +0100 | |
changeset 217 | 8ddf4fe6bf31 |
parent 216 | 38718062709a |
child 218 | bc1f7c82e1a8 |
permissions | -rw-r--r-- |
216
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
1 |
#include <string.h> |
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
2 |
#include <stdio.h> |
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
3 |
|
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
4 |
void dead () { |
217
8ddf4fe6bf31
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
216
diff
changeset
|
5 |
printf("I will never be printed!\n"); |
8ddf4fe6bf31
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
216
diff
changeset
|
6 |
exit(1); |
216
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
7 |
} |
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
8 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
9 |
|
216
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
10 |
int main(int argc, char **argv) { |
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
11 |
|
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
12 |
char buffer[8]; |
217
8ddf4fe6bf31
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
216
diff
changeset
|
13 |
dead(); |
216
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
14 |
strcpy(buffer, argv[1]); |
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
15 |
|
38718062709a
updated C2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
16 |
return 1; |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
17 |
} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
18 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
19 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
20 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
21 |