← cproj

inital commit

9ef45c6c24de852da274aa51a49c872b97a077fa · Ovidiu · Aug 30, 2020 15:04

+22 · 3 files changed

  • .gitmodules +3 −0
  • lib/sds +1 −0
  • src/main.c +18 −0
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..8d29857
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "lib/sds"]
+	path = lib/sds
+	url = https://github.com/antirez/sds
diff --git a/lib/sds b/lib/sds
new file mode 160000
index 0000000..fb46314
--- /dev/null
+++ b/lib/sds
@@ -0,0 +1 @@
+Subproject commit fb463145c9c245636feb28b5aac0fc897e16f67e
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..ba6aefd
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,18 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
+
+#include "sds/sds.h"
+
+
+
+
+int main (int argc, char** argv) {
+    if (argc != 2) {
+      fprintf(stderr,"Argument count missing\n");
+    }
+    fprintf(stdout, "The number of arguments is: %d\n",argc);
+    fprintf(stdout, "%s\n","correct" ); 
+
+    return EXIT_SUCCESS;
+}