Chapter 7: The String and Character Functions

vscanf, vfscanf, and vsscanf

#include <stdarg.h>#include <stdio.h> int vscanf(char * restrict format, va_list arg_ptr); int vfscanf(FILE * restrict stream, const char * restrict format,             va_list arg_ptr); int vsscanf(char * restrict buf, const char * restrict format,             va_list arg_ptr);

These functions were added by C99.

The functions vscanf( ), vfscanf( ), and vsscanf( ) are functionally equivalent to scanf( ), fscanf( ), and sscanf( ), respectively, except that the argument list has been replaced by a pointer to a list of arguments. This pointer must be of type va_list, which is defined in the header <stdarg.h>.

Related functions are vprintf( ), vfprintf( ), vsprintf( ), va_arg( ), va_start( ), and va_end( ).




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net