vsnprintf: make more consistent with snprintf; doc fixes
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Dec 2010 07:32:55 +0000 (23:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Dec 2010 07:33:30 +0000 (23:33 -0800)
commit562547d19b88ca771061280e43c4c97143e43463
tree4addc54fe81d0f9788948813dbb4eb6863fbe235
parentedfd5f9af764c1b43b948171e767e181125cfe09
vsnprintf: make more consistent with snprintf; doc fixes

* doc/posix-functions/snprintf.texi (snprintf): The workaround for
the byte count return problem was promoted from the snprintf-posix
to the snprintf module.
* doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
* m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
* tests/test-snprintf.c (main): Check the byte count returned.
* tests/test-vsnprintf.c (main): Likewise.
ChangeLog
doc/posix-functions/snprintf.texi
doc/posix-functions/vsnprintf.texi
m4/vsnprintf.m4
tests/test-snprintf.c
tests/test-vsnprintf.c