home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 1
/
ARM_CLUB_CD.iso
/
contents
/
education
/
a
/
autopcb
/
!AutoPCB
/
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 );
}