[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


vswscanf

Reads formatted text from a wide-character string.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <wchar.h>
int __vswscanf(const wchar_t * s, 
  const wchar_t * format, va_list arg);
Parameters:

Parameters for this function are:

s  
wchar_t*  
The string being read  
format  
wchar_t*  
The format string  
.arg  
va_list  
A variable argument list  

Remarks:

The vswscantf() function works identically to the swscanf() function. Instead of the variable list of arguments that can be passed to swscanf(), vswscanf() accepts its arguments in the array arg of type va_list, which must have been initialized by the va_start() macro (and possibly subsequent va_arg calls) from the stdarg.h header file. The vswscanf() function does not invoke the va_end macro.

Refer to the "wscanf" function for details of the format string.


NOTE

On embedded/ RTOS systems this function only is implemented for stdin, stdout and stderr files.
Return:

vswscanf() returns the number of items assigned, which can be fewer than provided for in the case of an early matching failure. If an input failure occurs before any conversion, vswscanf() returns EOF.

See Also:

"Wide Character and Byte Character Stream Orientation"

"sscanf"


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000