X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=lib.h;h=81ff9fcec04fdcd18ad7da34f5c89ed91632a67f;hb=db59ee1476515a65cfcca10a3059d8ccb2d24d32;hp=fc9d01604a596e0dd1dde1522a2bbba3960c36b0;hpb=9f9813ee612b45b0bb64345b482899fa3a39b5a5;p=userv.git diff --git a/lib.h b/lib.h index fc9d016..81ff9fc 100644 --- a/lib.h +++ b/lib.h @@ -30,7 +30,8 @@ void miscerror(const char *what) NONRETURNING; void syscallerror(const char *what) NONRETURNING; void *xmalloc(size_t s); void *xrealloc(void *p, size_t s); -void makeroom(char **buffer, int *size, int needed); +int makeroom(char **buffer, int *size, int needed); +/* makeroom returns -1 if needed was far too large; otherwise returns 0. */ /* It doesn't appear to be documented whether [v]snprintf put a null * in if they overrun. GNU libc does, but I don't want to rely on