]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/alloc.c
1 /* $NetBSD: alloc.c,v 1.4 1997/10/19 16:56:47 christos Exp $ */
4 __RCSID("$NetBSD: alloc.c,v 1.4 1997/10/19 16:56:47 christos Exp $");
14 a ridiculous definition, suppressing
15 "possible pointer alignment problem" for (long *) malloc()
16 "enlarg defined but never used"
17 "ftell defined (in <stdio.h>) but never used"
24 long dummy
= ftell(stderr
);
26 dummy
= 0; /* make sure arg is used */
38 if (!(ptr
= malloc(lth
)))
39 panic("Cannot get %d bytes", lth
);
40 return ((long *) ptr
);
50 if (!(nptr
= realloc(ptr
, lth
)))
51 panic("Cannot reallocate %d bytes", lth
);
52 return ((long *) nptr
);