vfscanf
- Updated2023-02-21
- 2 minute(s) read
vfscanf
int vfscanf (FILE *stream, const char formatString[], va_list target_s);
Purpose
Reads input from the specified stream and converts it into a series of values according to the specifications of the formatting string.
Parameters
Input | ||||
Name | Type | Description | ||
stream | FILE * | Contains a pointer to the stream from which data is scanned. | ||
formatString | const char [] |
Contains the format string that specifies the admissible input sequences and how they are converted for
assignment. Use standard ANSI C format specifiers. If insufficient arguments exist for the format, the behavior is undefined. If the format is exhausted
while arguments remain, the excess arguments are evaluated but are otherwise ignored.
|
||
target_s | va_list | Contains a variable argument list initialized by the va_start macro and possibly subsequent va_arg calls. Though the list is an input parameter, it contains one or more target variables that receive the formatted output values. |
Return Value
Name | Type | Description |
ItemsFormatted | int | Contains the number of parameters successfully matched and formatted or EOF (-1) in case of an invalid input. This value might be less than the number of parameters you pass in for matching in the following cases:
|
Additional Information
Library: ANSI C Library
Include file: ansi_c.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later