Merge branch 'refactoring'
[calc.git] / storage.h
diff --git a/storage.h b/storage.h
new file mode 100644 (file)
index 0000000..896c264
--- /dev/null
+++ b/storage.h
@@ -0,0 +1,22 @@
+#ifndef __STORAGE_H__
+#define __STORAGE_H__
+
+#include "tabular.h"
+
+/* global variables */
+
+extern tab_t *storage;
+
+/* storage functions */
+
+int memory (int nb);
+double store (int id, double value);
+double recall (int id);
+double increase (int id);
+double decrease (int id);
+void display (void);
+void clear ();
+
+#endif /* __STORAGE_H__ */
+
+/* vim: set ts=4 sw=4 et: */