13 erealloc(void *a, uint n)
17 sysfatal("realloc %d: out of memory", n);
18 setrealloctag(a, getcallerpc(&a));
29 sysfatal("malloc %d: out of memory", n);
30 setmalloctag(a, getcallerpc(&n));
39 sysfatal("strdup: out of memory");
40 setmalloctag(s, getcallerpc(&s));
45 estredup(char *s, char *e)
52 setmalloctag(t, getcallerpc(&s));
57 estrmanydup(char *s, ...)
65 while((p = va_arg(arg, char*)) != nil)
72 while((p = va_arg(arg, char*)) != nil)
83 if('A' <= *t && *t <= 'Z')