X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/7527ed0bc3b9987d6b468cf76cb8f55f1b4ff4db..7292c4c6e2b50cc43f17507745ff6c3e2d0057f3:/man/dstr.3 diff --git a/man/dstr.3 b/man/dstr.3 index 7726e6d..b731715 100644 --- a/man/dstr.3 +++ b/man/dstr.3 @@ -19,7 +19,7 @@ .. .ie t .ds o \(bu .el .ds o o -.TH dstr 3 "8 May 1999" "mLib" +.TH dstr 3 "8 May 1999" "Straylight/Edgeware" "mLib utilities library" .SH NAME dstr \- a simple dynamic string type .\" @dstr_create @@ -63,7 +63,7 @@ dstr \- a simple dynamic string type .BI "void dstr_putc(dstr *" d ", char " ch ); .BI "void dstr_putz(dstr *" d ); .BI "void dstr_puts(dstr *" d ", const char *" s ); -.BI "int dstr_vputf(dstr *" d ", va_list " ap ); +.BI "int dstr_vputf(dstr *" d ", va_list *" ap ); .BI "int dstr_putf(dstr *" d ", ...);" .BI "void dstr_putd(dstr *" d ", const dstr *" p ); .BI "void dstr_putm(dstr *" d ", const void *" p ", size_t " sz ); @@ -340,12 +340,15 @@ The function .B dstr_vputf provides access to the `guts' of .BR dstr_putf : -given a format string and a -.B va_list -pointer, it will format the arguments according to the format string, -just as +given a format string and a pointer to a +.BR va_list +it will format the arguments according to the format string, just as .B dstr_putf -does. +does. (Note: that's a +.BR "va_list *" , +not a plain +.BR va_list , +so that it gets updated properly on exit.) .PP The function .B dstr_putd