Table of Contents
Previous topic Next topic
C LIBRARY FUNCTIONS->Detailed Descriptions->fscanf()
Summary
#include <stdio.h>
int fscanf(FILE* stream, const char* format, ...);
Parameters
stream | Pointer to FILE structure |
format | Format control string |
... | Arguments to receive scanned data |
Description
This function reads formatted data from the current position of stream and assigns converted values to subsequent arguments, each of which must be a pointer. The function returns when format is exhausted.
The format control string has the same form and function as the format argument of the scanf() function.
Return Value
The function returns the number of fields successfully converted and assigned.