summaryrefslogtreecommitdiff
path: root/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'flash.c')
-rw-r--r--flash.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/flash.c b/flash.c
new file mode 100644
index 0000000..d8590d4
--- /dev/null
+++ b/flash.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <time.h>
+
+#include "cards.h"
+
+int main() {
+loop:
+ srand(time(NULL));
+ int n = rand() % len(cards);
+
+ printf("%s\n", cards[n].front);
+ getchar();
+ printf("%s\n", cards[n].back);
+
+ goto loop;
+
+ return 0;
+}