Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wsscanf(3) — OSF/1 1.0 (TIN) MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

atof(3)

atoi(3)

getc(3)

getwc(3)

printf(3)

scanf(3)

wsscanf(3)  —  Subroutines

OSF

NAME

wsscanf − Converts formatted input

LIBRARY

Standard I/O Package (libc.a)

SYNOPSIS

#include <stdio.h>

int wsscanf (
wchar_t ∗string,
char ∗format [, pointer, ... ] );

PARAMETERS

string Specifies a wchar_t string. 

format
Contains conversion specifications used to interpret the input.  If there are insufficient arguments for the format parameter, the behavior is undefined.  If the format is exhausted while arguments remain, the excess arguments are evaluated as always but are otherwise ignored. 

pointer
Specifies where to store the interpreted data.

DESCRIPTION

The wsscanf() function is provided when Japanese Language Support is installed on your system. 

The wsscanf() function reads character data, interprets it according to a format, and stores the converted results into specified memory locations.  If there are insufficient arguments for the format, the behavior is undefined.  If the format is exhausted while arguments remain, the excess arguments are evaluated but otherwise ignored. 

This function is the same as the scanf() function, except that the wsscanf() function reads its input from the wchar_t string specified by the string parameter. 

RETURN VALUES

The wsscanf() function returns the number of successfully matched and assigned input items.  This number can be 0 (zero) if there was an early conflict between an input character and the control string.  If the input ends before the first conflict or conversion, only EOF is returned. 

RELATED INFORMATION

Functions: atof(3), atoi(3), getc(3), getwc(3), printf(3), scanf(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026