summary refs log tree commit diff stats
path: root/c/two-fer/src/two_fer.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/two-fer/src/two_fer.c')
-rw-r--r--c/two-fer/src/two_fer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/c/two-fer/src/two_fer.c b/c/two-fer/src/two_fer.c
new file mode 100644
index 0000000..259c750
--- /dev/null
+++ b/c/two-fer/src/two_fer.c
@@ -0,0 +1,7 @@
+#include "two_fer.h"
+#include <stdio.h>
+#include <string.h>
+
+void two_fer(char *buffer, const char *name) {
+    sprintf(buffer, "One for %s, one for me.", name == NULL ? "you" : name);
+}