home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
SMALLC21
/
SMC21LIB.LBR
/
AVAIL.C
< prev
next >
Wrap
Text File
|
2000-06-30
|
384b
|
17 lines
#define NOCCARGC
extern char *_memptr;
/*
** Return the number of bytes of available memory and if abort,
** abort with S if there aren't any
*/
avail(abort) int abort; {
char x;
if(&x < _memptr) {
if(abort) exit ('M');
return (0);
}
return (&x - _memptr);
}