summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..9d27ab9
--- /dev/null
+++ b/util.h
@@ -0,0 +1,8 @@
+#define len(c) sizeof(c) / sizeof(c[0])
+
+#define CARDMAX 512
+
+typedef struct card {
+ char front[CARDMAX];
+ char back[CARDMAX];
+} card;