[c] How to use nan and inf in C?