X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=storage.h;fp=storage.h;h=3a6ef86a5e4a4e36c3a3e7f59d28a663702dcfc7;hb=a24bd5195f9990159a974c98751f1473f29b9fa4;hp=0000000000000000000000000000000000000000;hpb=a70d1cdb22b2aa77a34d483403a182e335babf8e;p=calc.git diff --git a/storage.h b/storage.h new file mode 100644 index 0000000..3a6ef86 --- /dev/null +++ b/storage.h @@ -0,0 +1,22 @@ +#ifndef __STORAGE_H__ +#define __STORAGE_H__ + +/* global variables */ + +extern double *storage; + +extern int storage_size; + +/* storage functions */ + +void memory (int nb); +double store (int index, double value); +double recall (int index); +double increase (int index); +double decrease (int index); +void display (void); +void clear (); + +#endif /* __STORAGE_H__ */ + +/* vim: set ts=4 sw=4 et: */