/* myheap.h */ void heapinit( int s ); /* initializes the heap from which the following routines * allocate memory so that it contains at least s bytes * of free space. */ void * mymalloc( int s ); /* returns a pointer to s consecutive bytes of RAM * returns NULL if no RAM is available. */ void myfree( void * p ); /* returns the block of RAM pointed to by p to the * heap; the value p must previously have been returned * by a call to myalloc() and it must not have already * been freed. */