progs/C4.c
changeset 105 40c51038c9e4
child 115 c4008b31df8e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/progs/C4.c	Mon Sep 30 23:57:44 2013 +0100
@@ -0,0 +1,15 @@
+#include<stdio.h>
+#include<string.h>
+
+// a program that just prints the argument
+// on the command line
+//
+// try and run it with %s
+
+
+main(int argc, char **argv)
+{
+        char *string = "This is a secret string\n";
+
+        printf(argv[1]);
+}