ack/lang/basic/lib/salloc.c
1984-11-29 14:22:02 +00:00

19 lines
228 B
C

/* $Header $ */
char * salloc(length)
int length;
{
char *c, *s;
c= (char *) malloc(length);
if( c== (char *) -1) error(5);
for(s=c;s<c+length;s++) *s = 0;
return(c);
}
sfree(c)
char *c;
{
if( c== 0) return;
free(c);
}