SCCS-vsn: lib/libc/stdio/scanf.3 6.4
.\"
.\" %sccs.include.redist.man%
.\"
.\"
.\" %sccs.include.redist.man%
.\"
-.\" @(#)scanf.3 6.3 (Berkeley) %G%
+.\" @(#)scanf.3 6.4 (Berkeley) %G%
.\"
.TH SCANF 3 ""
.UC 7
.SH NAME
.\"
.TH SCANF 3 ""
.UC 7
.SH NAME
-scanf, fscanf, sscanf \- formatted input conversion
+scanf, fscanf, sscanf, vfscanf \- formatted input conversion
.SH SYNOPSIS
.B #include <stdio.h>
.PP
.SH SYNOPSIS
.B #include <stdio.h>
.PP
[ , pointer ... ]
.B )
.br
[ , pointer ... ]
.B )
.br
+.B char *str;
+.br
+.B char *format;
+.PP
+.B #include <varargs.h>
+.PP
+.B vfscanf(stream, format, ap)
+.br
+.SM
+.B FILE
+.B *stream;
+.br
+.B char *format;
+.br
+.B va_list ap;
+.br
.SH DESCRIPTION
The
.I scanf
.SH DESCRIPTION
The
.I scanf
.I sscanf
reads from the character string
.IR str .
.I sscanf
reads from the character string
.IR str .
+.I Vfscanf
+is analogous to
+.I vfprintf
+and reads from a named input
+.I stream
+using a variable argument list of pointers (see
+.IR varargs (3)).
Each successive
.I pointer
argument must correspond properly with
Each successive
.I pointer
argument must correspond properly with
conversions is unfortunate.
.br
All of the backwards compatibility formats will be removed in the future.
conversions is unfortunate.
.br
All of the backwards compatibility formats will be removed in the future.
+.br
+There is no
+.I vscanf
+or
+.IR vsscanf .
+.\" Had to draw the line somewhere!