getw

Returns characters from a specified file.

Format

#include  <stdio.h>

int getw  (FILE *file_ptr);

Argument

file_ptr
A pointer to the file to be accessed.

Description

This function returns the next four characters from the specified input file as an int.

Return Values
The next four characters, in an int. 
EOF  Indicates that the end-of-file was encountered during the retrieval of any of the four characters and all four characters were lost. Since EOF is an acceptable integer, use feof and ferror to check the success of the function. 


Previous Page | Next Page | Table of Contents | Index