home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 55
/
Amiga_Dream_55.iso
/
RISCOS
/
APPS
/
SCI
/
ELECTRON
/
AUTOPC.ZIP
/
!AutoPCB
/
Source
/
c
/
ALLOC
next >
Wrap
Text File
|
1991-03-17
|
314b
|
21 lines
#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 );
}