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

vfscanf.3p (2895B)


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