streambuf::pbackfail

Syntax

virtual int pbackfail( int nCh );

Parameters

nCh

The character used in a previous sputbackc call.

Remarks

This function is called by sputbackc if it fails, usually because the eback pointer equals the gptr pointer. The pbackfail function should deal with the situation, if possible, by such means as repositioning the external file pointer.

Default Implementation

Returns EOF.

Return Value

The nCh parameter if successful; otherwise EOF.

See Also

streambuf::sputbackc