]> Savannah Git Hosting - gnulib.git/commitdiff
vprintf-posix: Document properly.
authorBruno Haible <bruno@clisp.org>
Sun, 30 Jun 2024 18:15:58 +0000 (20:15 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 30 Jun 2024 18:57:44 +0000 (20:57 +0200)
* lib/stdio.in.h (vprintf): Add specification.
* lib/vprintf.c (vprintf): Remove specification.

ChangeLog
lib/stdio.in.h
lib/vprintf.c

index 755b3d463058a2b6d8e8266107197352b1547a48..62041cd616bd6d5d64bce262330d12e6c4b01f28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
index 9ecca6a0d1766a079dd9f01044589d96baabe9be..51876b24550cc5a6588ea477e29b624a471b3886 100644 (file)
@@ -1900,6 +1900,9 @@ _GL_CXXALIAS_SYS (vzprintf, off64_t,
 #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)
index 751a2354624874d9ba59a1d4524fbc4b839c0d9a..8ec4be7752a9416f1b8a4ea05795c1abf1739dcc 100644 (file)
@@ -1,4 +1,4 @@
-/* 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
@@ -23,9 +23,6 @@
 
 #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)
 {