Go to the first, previous, next, last section, table of contents.


_doscan

Syntax

#include <stdio.h>

int _doscan(FILE *file, const char *format, void **ptrs_to_args);

Description

This is an internal function that is used by all the scanf style functions, which simply pass their format, arguments, and stream to this function.

See section scanf for a discussion of the allowed formats and arguments.

Return Value

The number of characters successfully scanned is returned, or -1 on error.

Portability

not ANSI, not POSIX

Example

int x, y;
int *args[2];
args[0] = &x;
args[1] = &y;
_doscan(stdin, "%d %d", args);


Go to the first, previous, next, last section, table of contents.