www.delorie.com/djgpp/doc/libc/libc_186.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_doscan

Syntax

 
#include <stdarg.h>
#include <stdio.h>

int _doscan(FILE *file, const char *format, va_list argp);

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

ANSI/ISO C No
POSIX No

Example

 
TODO: This example is bogus now!
TODO: Rewrite this example!

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


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004