Each formatted input function begins by calling ipfx() and if the scan fails for any reason, then calls setstate(failbit). The behavior of the scan functions are "as if" it was fscanf().