Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CPPLIB_H
- #define CPPLIB_H
- struct Stash {
- int size; // Size of each space
- int quantity; // Number of storage spaces
- int next; // Next empty space
- // Dynamically allocated array of bytes:
- unsigned char* storage;
- // Functions!
- void initialize(int size);
- void cleanup();
- int add(const void* element);
- void* fetch(int index);
- int count();
- void inflate(int increase);
- };
- #endif // CPPLIB_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement