+#include <stdlib.h>
+#include "general.h"
#include "config.h"
unsigned long int money = 0;
unsigned long int num_items = 0;
unsigned long int items_sold = 0;
+struct status_t status[MAX_ITEMS+1];
void load_config();
void load_items(){
+ char c;
num_items=3;
status[0].item_name = "cola";
status[0].price = 230;
};
#define MAX_ITEMS 15
-static struct status_t status[MAX_ITEMS+1];
+extern struct status_t* status;
// unklar bis jetzt was das tun wird
void load_config();
--- /dev/null
+#ifndef GENERAL_H_
+#define GENERAL_H_
+#define uc unsigned char
+#define NULL 0
+#endif /*GENERAL_H_*/
#include <conio.h>
#include <stdlib.h>
+#include "general.h"
#include "config.h"
#include "kasse.h"
// conf
/* Abkürzung */
-#define uc unsigned char