vsprintf: vsprintf does not have parameter size
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 6 Sep 2017 15:55:13 +0000 (17:55 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 7 Sep 2017 14:44:37 +0000 (10:44 -0400)
The inline documentation of vsprintf mentions a parameter size
which does not exist in the function declaration.

int vsprintf(char *buf, const char *fmt, va_list args);

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/vsprintf.h

index e38076d..490c96c 100644 (file)
@@ -112,12 +112,10 @@ int sprintf(char *buf, const char *fmt, ...)
  * Format a string and place it in a buffer (va_list version)
  *
  * @param buf  The buffer to place the result into
- * @param size The size of the buffer, including the trailing null space
  * @param fmt  The format string to use
  * @param args Arguments for the format string
  * @return the number of characters which have been written into
- * the @buf not including the trailing '\0'. If @size is == 0 the function
- * returns 0.
+ * the @buf not including the trailing '\0'.
  *
  * If you're not already dealing with a va_list consider using scnprintf().
  *