summaryrefslogtreecommitdiff
path: root/missing/finite.c
blob: f91035a8cd610a4adb107375434b5a2d7978678f (plain)
1
2
3
4
5
6
7
8
/* public domain rewrite of finite(3) */

int
finite(n)
    double n;
{
    return !isnan(n) && !isinf(n);
}