d5f0107746
--HG-- branch : dtrg-buildsystem
19 lines
214 B
C
19 lines
214 B
C
#include <stdlib.h>
|
|
|
|
char * salloc(length)
|
|
unsigned length;
|
|
{
|
|
char *c, *s;
|
|
c= malloc(length);
|
|
if( !c ) error(5);
|
|
for(s=c;s<c+length;s++) *s = 0;
|
|
return(c);
|
|
}
|
|
|
|
sfree(c)
|
|
char *c;
|
|
{
|
|
if( !c ) return;
|
|
free(c);
|
|
}
|