Initial adjustments.
[mctap.git] / src / mctap.c
diff --git a/src/mctap.c b/src/mctap.c
new file mode 100644 (file)
index 0000000..061edd5
--- /dev/null
@@ -0,0 +1,29 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
+static void usage(FILE *out)
+{
+    fprintf(out, "usage: mctap [-h]\n");
+}
+
+int main(int argc, char **argv)
+{
+    int c;
+    
+    while((c = getopt(argc, argv, "-h")) >= 0) {
+       switch(c) {
+       case 'h':
+           usage(stdout);
+           return(0);
+       default:
+           usage(stderr);
+           exit(1);
+       }
+    }
+    
+    return(0);
+}