#include "spice.h"
#include "misc.h"
Go to the source code of this file.
Definition at line 17 of file alloc.c.
27 static char *mem_alloc();
34 s = mem_alloc((
unsigned) num, 1, &i);
36 s =
malloc((
unsigned) num);
40 "malloc: Internal Error: can't allocate %d bytes.\n", num);
int bzero(char *ptr, int num)
char* trealloc |
( |
char * |
str, |
|
|
int |
num |
|
) |
| |
Definition at line 49 of file alloc.c.
57 static char *mem_alloc();
67 s = mem_alloc((
unsigned) num, 1, &i);
76 s =
realloc(str, (
unsigned) num);
81 "realloc: Internal Error: can't allocate %d bytes.\n", num);
void bcopy(char *from, char *to, int num)
void txfree |
( |
char * |
ptr | ) |
|