wsscanf(3scl)wsscanf(3scl)NAMEwsscanf - performs formatted input conversion from wide-character
string
SYNOPSIS
#include <widec.h>
int wsscanf(wchar_t *str,
const char *format,
[,pointer]...);
PARAMETERS
Pointer to buffer containing input data to be read Format specifier for
data being obtained from buffer Pointer(s) to data location(s) to con‐
tain interpreted data
DESCRIPTION
The wsscanf() function behaves as function sscanf(3) except that the
input buffer is a wide-character string terminated with the wchar_t
null character.
A series of pointers are passed as additional arguments referencing
buffers in to which the formatted input is stored.
SCL IMPLEMENTATION NOTES
SCL does not actually implement the wsscanf() function. However it is
straightforward to make minor application code changes to call a suit‐
able equivalent. The following code fragment is an example of the
changes to make for the statement wsscanf(str, format, ptr1, ptr2):
#include <stdlib.h>
wchar_t wformat[WCHAR_FORMAT_SIZE];
...
mbstowcs(wformat, format, WCHAR_FORMAT_SIZE);
swscanf(str, wformat, ptr1, ptr2);
...
To assist in identifying code that calls wsscanf(), the widec.h header
file defines a macro for the function that causes a compilation error
for lines containing calls to wsscanf(). The compiler error message
includes the text "wsscanf_not_implemented_use_swscanf_instead". Gener‐
ation of this message can be avoided by defining the SCL_NO_FUNC‐
TION_MAPPING preprocessor symbol.
RELATED INFORMATION
Functions: swscanf(3), wsprintf(3scl)
Manual: Solaris Compatibility Library User's Guide
wsscanf(3scl)