author | cu |
Tue, 03 Oct 2017 14:50:45 +0100 | |
changeset 543 | 9439027a0736 |
parent 233 | 5a5729358afc |
permissions | -rw-r--r-- |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
1 |
#include<stdio.h> |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
2 |
#include<string.h> |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
3 |
|
115
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
4 |
// a program that "just" prints the argument |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
5 |
// on the command line |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
6 |
|
220
74772c30e0f4
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
115
diff
changeset
|
7 |
int main(int argc, char **argv) |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
8 |
{ |
220
74772c30e0f4
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
115
diff
changeset
|
9 |
char *string = "This is a secret string\n"; |
74772c30e0f4
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
115
diff
changeset
|
10 |
printf(argv[1]); |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
11 |
} |