* lib/stdio.in.h (vprintf): Add specification.
* lib/vprintf.c (vprintf): Remove specification.
2024-06-30 Bruno Haible <bruno@clisp.org>
+ vprintf-posix: Document properly.
+ * lib/stdio.in.h (vprintf): Add specification.
+ * lib/vprintf.c (vprintf): Remove specification.
+
vzprintf: New module.
* lib/stdio.in.h (vzprintf): New declaration.
* lib/vzprintf.c: New file, based on lib/vprintf.c.
#endif
#if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VPRINTF@
+/* Prints formatted output to standard output.
+ Returns the number of bytes written to standard output. Upon failure,
+ returns a negative value with stdout's error indicator set. */
# if (@GNULIB_VPRINTF_POSIX@ && @REPLACE_VPRINTF@) \
|| (@GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@))
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
-/* Formatted output to a stream.
+/* Formatted output to standard output.
Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
#include <stdarg.h>
-/* Print formatted output to standard output.
- Return string length of formatted string. On error, return a negative
- value. */
int
vprintf (const char *format, va_list args)
{