Ruby: missing/finite.c Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

finite.c
Go to the documentation of this file.
1/* public domain rewrite of finite(3) */
2
3#include "ruby/missing.h"
4
5int
6 finite(double n)
7{
8 return !isnan(n) && !isinf(n);
9}
finite
int finite(double n)
Definition: finite.c:6
missing.h
Prototype for *.c in ./missing, and for missing timeval struct.
isinf
int isinf(double n)
Definition: isinf.c:56
isnan
#define isnan(x)
Definition: win32.h:346