In function getfloat, switches sfound, dfound, and pfound indicate the presence in the input of a sign char, a digit char, and a decimal point respectively.  They are used to push back a decimal point and a sign char, if necessary, when no digit was found.

Function getfloat returns an int as did function getint since the return value serves only to indicate the status of the input file.