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
/
LANGUAGS
/
XLISP
/
XLISP11.ARK
/
JUNK.C
< prev
next >
Wrap
Text File
|
1986-10-12
|
384b
|
27 lines
#include "a:stdio.h"
#include "xlisp.h"
int getch(fp)
FILE *fp;
{
int ch;
if ((ch = agetc(fp)) == '\032')
return (EOF);
else
return (ch);
}
char *calloc(n,size)
unsigned n,size;
{
char *str;
unsigned nsize,i;
if ((str = malloc(nsize = n * size)) == NULL)
return (NULL);
for (i = 0; i < nsize; i++)
str[i] = 0;
return (str);
}
((str