]>
git.ipfire.org Git - people/ms/putty.git/blob - contrib/cygtermd/malloc.c
2 * malloc.c: implementation of malloc.h
10 extern void fatal(const char *, ...);
12 void *smalloc(size_t size
) {
16 fatal("out of memory");
27 void *srealloc(void *p
, size_t size
) {
35 fatal("out of memory");
39 char *dupstr(const char *s
) {
40 char *r
= smalloc(1+strlen(s
));