istream::peek

Syntax

int peek() const;

Remarks

Returns the next character without extracting it from the stream. Returns EOF if the stream is at end of file or if the ipfx function indicates an error.