int isfinite(
	double __x)

The isfinite() function returns a nonzero value if __x is finite: not plus or minus infinity, and not NaN.