aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Brattlof <hello@bryanbrattlof.com>2020-08-06 10:33:16 -0400
committerBryan Brattlof <hello@bryanbrattlof.com>2020-08-06 12:08:26 -0400
commit8642edf29ef6eff5077d76ce2e6d4ee2bda4a979 (patch)
tree82ab63968b97434543927ccbbba06a610648a2e9
parentd9ecabf82c935a0f2f1f741f8efe31f232a601fa (diff)
downloadsudoku-8642edf29ef6eff5077d76ce2e6d4ee2bda4a979.tar.gz
sudoku-8642edf29ef6eff5077d76ce2e6d4ee2bda4a979.tar.bz2
c: add initial c code
-rw-r--r--c/main.c8
-rw-r--r--c/makefile5
2 files changed, 13 insertions, 0 deletions
diff --git a/c/main.c b/c/main.c
new file mode 100644
index 0000000..b435194
--- /dev/null
+++ b/c/main.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ for(int i=1; i < argc; i++) {
+ printf("Puzzle No.%d: %s\n", i, argv[i]);
+ }
+}
diff --git a/c/makefile b/c/makefile
new file mode 100644
index 0000000..f68bc0e
--- /dev/null
+++ b/c/makefile
@@ -0,0 +1,5 @@
+CC=gcc
+CFLAGS=-I.
+
+sudoku: main.c
+ $(CC) -o sudoku main.c