home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <stdlib.h>
-
- char *Alloc( long );
- void Nomem( void );
-
- char *Alloc ( x ) /* allocate x bytes of far memory */
- long x;
- {
- char *mem;
-
- mem = (char *)malloc(x);
- return(mem);
- }
-
- void Nomem ()
- { /* a memory allocation request has failed */
- printf( "out of memory\n" );
- exit( -1 );
- }
-