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 |
progs/C1.c | file | annotate | diff | comparison | revisions |
--- a/progs/C1.c Mon Oct 06 22:57:44 2014 +0100 +++ b/progs/C1.c Tue Oct 07 00:12:29 2014 +0100 @@ -2,14 +2,15 @@ #include <stdio.h> void dead () { - printf("I will never be printed!"); + printf("I will never be printed!\n"); + exit(1); } int main(int argc, char **argv) { char buffer[8]; - + dead(); strcpy(buffer, argv[1]); return 1;