scsh-0.5/scsh/scsh_aux.h

8 lines
287 B
C
Raw Normal View History

1995-10-13 23:34:21 -04:00
/* String equality predicate. */
#define streq(a,b) (!strcmp((a),(b)))
#define Alloc(type) ((type *) malloc(sizeof(type)))
#define Malloc(type,n) ((type *) malloc(sizeof(type)*(n)))
#define Free(p) (free((char *)(p)))
#define Realloc(type,p,n) ((type *) realloc(p, (n)*sizeof(type)))