getwc(3) — Subroutines
OSF
NAME
getwc, fgetwc, getwchar − Gets a character or word from an input stream
LIBRARY
Standard I/O Package (libc.a)
SYNOPSIS
#include <stdio.h> int getwc (
FILE ∗stream ); int fgetwc (
FILE ∗stream ); int getwchar ( void );
PARAMETERS
streamSpecifies the input data.
DESCRIPTION
The getwc(), fgetwc(), and getwchar() functions are provided when Japanese Language Support is installed on your system.
The getwc() function gets the next 1-byte or 2-byte character from the input stream specified by the stream parameter, and returns an NLchar data type as an integer. The fgetwc() function performs the same function as getwc().
The getwchar() function gets the next 1-byte or 2-byte character from the standard input stream and returns an NLchar as an integer.
RETURN VALUES
These functions and macros return the integer constant EOF at the end of the file or upon an error.
RELATED INFORMATION
Functions: fopen(3), fread(3), getc(3), gets(3), putwc(3), scanf(3), wsscanf(3)