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


fgetws

The function fgetws reads a wide character string from a file stream.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <wchar.h>
wchar_t *fgetws(wchar_t * s, int n, FILE * file);
Parameters:

Parameters for this function are:

s  
wchar_t *  
A wide char string to receive input  
n  
int  
Maximum number of wide characters to be read  
file  
FILE *  
A pointer to the input file stream  

Remarks:

Behaves like fgets for wide characters.


NOTE

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

Returns a pointer to `s' if successful or NULL for a failure.

See Also:

"Wide Character and Byte Character Stream Orientation"

"fgets"


[ 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