summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/common.c b/common.c
index 4d4966a..8e144d1 100644
--- a/common.c
+++ b/common.c
@@ -1,9 +1,15 @@
-#include <stdio.h>
+#include "debug.h"
-void print_int(int i) {
- printf("%d\n", i);
+int debug_int(int i) {
+ debug("%d\n", i);
+ return i;
}
-void print_str(char *s) {
- printf("%s\n", s);
+char *debug_str(char *s) {
+ debug("%s\n", s);
+ return s;
+}
+
+int int_if(int p, int a, int b) {
+ return p ? a : b;
}