#include <math.h>
int isinf ( double x );
isinf returns 1 if the argument x is either positive or negative infinity, otherwise 0.
x Floating-point value