![]() ![]() | ![]() |
version 1.24, 2014/01/08 21:40:25 | version 1.25, 2014/01/08 22:30:32 | ||
---|---|---|---|
|
|
||
} | } | ||
char * | void * | ||
allocate(unsigned int n) | allocate(size_t n) | ||
{ | { | ||
char *p; | void *v; | ||
p = NULL; | v = NULL; | ||
if (n) | if (n) | ||
{ | { | ||
p = calloc(1, n); | v = calloc(1, n); | ||
if (!p) no_space(); | if (!v) no_space(); | ||
} | } | ||
return (p); | return (v); | ||
} | } | ||
#define TEMPNAME(s, c, d, l) \ | #define TEMPNAME(s, c, d, l) \ |