summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/common.c b/common.c
new file mode 100644
index 0000000..3d78e51
--- /dev/null
+++ b/common.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+int writeyes(void) {
+ puts("yes");
+ return 0;
+}
+
+int writeno(const char *s) {
+ if(s)
+ printf("no (%s)\n", s);
+ else
+ puts("no");
+ return 1;
+}