summaryrefslogtreecommitdiffstats
path: root/src/chatprotocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chatprotocol.c')
-rw-r--r--src/chatprotocol.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/chatprotocol.c b/src/chatprotocol.c
new file mode 100644
index 0000000..f4725fc
--- /dev/null
+++ b/src/chatprotocol.c
@@ -0,0 +1,15 @@
+#include "doctest.h"
+#include <stdio.h>
+
+DOCF(int, main, int argc, char *argv[]) {
+#ifdef DOCS
+ D("Prints \"Hello, World!\" and args.");
+#else
+ int i = 0;
+ printf("Hello, World!\n");
+ for (i = 0; i < argc; i++) {
+ printf("%d: %s\n", i, argv[i]);
+ }
+#endif
+ DOCF_END;
+}