]> git.sur5r.net Git - c128-kasse/blobdiff - test.c
items und state laden geht, demodaten in dateien state und items
[c128-kasse] / test.c
diff --git a/test.c b/test.c
new file mode 100644 (file)
index 0000000..f94b446
--- /dev/null
+++ b/test.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <conio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "general.h"
+#include "config.h"
+#include "kasse.h"
+#include "credit_manager.h"
+
+int main(){
+       BYTE i=0;
+       load_items();
+       load_state();
+       for (; i < num_items; ++i)
+               printf("Eintrag %x: %s (%d Cents, %d mal verkauft)\n", i, status[i].item_name, status[i].price, status[i].times_sold);
+}
\ No newline at end of file