A little unrelated but it's a question about C :)



Hi,

I'm trying to debug a program and I need to have a printf statement that
will get called when a float variable turns into NaN.

I tried something like

if(VARIABLE == NULL)
{
   printf("%d" , Called_Function_Id);
}

But the compiler doesn't like it. Is there a way to catch a NaN value
like that?

THanks


--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
mquezada nlxcorp com
703-234-2100 x1028
http://www.nlxcorp.com







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]