logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

vfprintf.3p (3182B)


  1. '\" et
  2. .TH VFPRINTF "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. vdprintf,
  12. vfprintf,
  13. vprintf,
  14. vsnprintf,
  15. vsprintf
  16. \(em format output of a stdarg argument list
  17. .SH SYNOPSIS
  18. .LP
  19. .nf
  20. #include <stdarg.h>
  21. #include <stdio.h>
  22. .P
  23. int vdprintf(int \fIfildes\fR, const char *restrict \fIformat\fR, va_list \fIap\fR);
  24. int vfprintf(FILE *restrict \fIstream\fP, const char *restrict \fIformat\fP,
  25. va_list \fIap\fP);
  26. int vprintf(const char *restrict \fIformat\fP, va_list \fIap\fP);
  27. int vsnprintf(char *restrict \fIs\fP, size_t \fIn\fP, const char *restrict \fIformat\fP,
  28. va_list \fIap\fP);
  29. int vsprintf(char *restrict \fIs\fP, const char *restrict \fIformat\fP, va_list \fIap\fP);
  30. .fi
  31. .SH DESCRIPTION
  32. The functionality described on this reference page is aligned with the
  33. ISO\ C standard. Any conflict between the requirements described here and the
  34. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  35. .P
  36. The
  37. \fIvdprintf\fR(),
  38. \fIvfprintf\fR(),
  39. \fIvprintf\fR(),
  40. \fIvsnprintf\fR(),
  41. and
  42. \fIvsprintf\fR()
  43. functions shall be equivalent to the \&
  44. \fIdprintf\fR(),
  45. \fIfprintf\fR(),
  46. \fIprintf\fR(),
  47. \fIsnprintf\fR(),
  48. and
  49. \fIsprintf\fR()
  50. functions respectively, except that instead of being called with a
  51. variable number of arguments, they are called with an argument list as
  52. defined by
  53. .IR <stdarg.h> .
  54. .P
  55. These functions shall not invoke the
  56. .IR va_end
  57. macro. As these functions invoke the
  58. .IR va_arg
  59. macro, the value of
  60. .IR ap
  61. after the return is unspecified.
  62. .SH "RETURN VALUE"
  63. Refer to
  64. .IR "\fIfprintf\fR\^(\|)".
  65. .SH ERRORS
  66. Refer to
  67. .IR "\fIfprintf\fR\^(\|)".
  68. .LP
  69. .IR "The following sections are informative."
  70. .SH EXAMPLES
  71. None.
  72. .SH "APPLICATION USAGE"
  73. Applications using these functions should call \fIva_end\fP(\fIap\fP)
  74. afterwards to clean up.
  75. .SH RATIONALE
  76. None.
  77. .SH "FUTURE DIRECTIONS"
  78. None.
  79. .SH "SEE ALSO"
  80. .IR "Section 2.5" ", " "Standard I/O Streams",
  81. .IR "\fIfprintf\fR\^(\|)"
  82. .P
  83. The Base Definitions volume of POSIX.1\(hy2017,
  84. .IR "\fB<stdarg.h>\fP",
  85. .IR "\fB<stdio.h>\fP"
  86. .\"
  87. .SH COPYRIGHT
  88. Portions of this text are reprinted and reproduced in electronic form
  89. from IEEE Std 1003.1-2017, Standard for Information Technology
  90. -- Portable Operating System Interface (POSIX), The Open Group Base
  91. Specifications Issue 7, 2018 Edition,
  92. Copyright (C) 2018 by the Institute of
  93. Electrical and Electronics Engineers, Inc and The Open Group.
  94. In the event of any discrepancy between this version and the original IEEE and
  95. The Open Group Standard, the original IEEE and The Open Group Standard
  96. is the referee document. The original Standard can be obtained online at
  97. http://www.opengroup.org/unix/online.html .
  98. .PP
  99. Any typographical or formatting errors that appear
  100. in this page are most likely
  101. to have been introduced during the conversion of the source files to
  102. man page format. To report such errors, see
  103. https://www.kernel.org/doc/man-pages/reporting_bugs.html .