function DatabaseCount( database: Handle ): UInt32;
procedure DatabaseGetIndEntry( database: Handle; index: UInt32; var entry: StringsHandle );
All strings are case sensitive (ie, treated as eight bit binary data).
DatabaseInit creates a new, empty database ready to accept records with field_count string fields. All the database information must be stored in the real Mac memory manager handle - it will be disposed with DisposeHandle and that must release all memory, so dont store any extra information outside the handle. Also, you must be able to deal with having multiple databases instantiated simultaneously.
DatabaseAddEntry adds an entry (which is a Handle to field_count pascal strings packed together conceptually numbered 1 to field_count)
DatabaseFindEntry finds an entry whose field (between 1 and field_count) string is exactly equal to match. The entry is returned in a newly created handle (which will be disposed of using DisposeHandle). Return nil if no match is found. If more than one entry matches, you must return the earliest added entry.
DatabaseDeleteEntry finds the entry that DatabaseFindEntry would find, and if found removes it from the database.
DatabaseCount returns the number fo entries in the database.
DatabaseGetIndEntry returns the entries in the Database in the order they were entered, 1 for the earliest entered, DatabaseCount the last entered.
You will not be given invalid parameters so you don't need to handle error checking, and there will be plenty of memory.
*/
#include "Solution.h"
// Fill in your solution and then submit this folder