View Single Post
Old 03-18-2005, 03:03 PM   #3 (permalink)
keeling
Registered User
 
Join Date: Mar 2005
Posts: 4
keeling is on a distinguished road
OK, maybe I'm missing something... but isn't that what I have.

With the example you gave ...."502.85E2 not number" ... I got it to return false because it isn't a number.

Perhaps I have miss understood what you were saying. As I said, please forgive me for being a bit slow. C is not a native nor friendly tongue for me.

All I'm trying to do is make sure a string I pass to this routine is numeric. I don't care if its short or double (hence why I used strtod). I know that strtod will take leading and trailing whitespace, but I can handle that.

Thanks
keeling is offline   Reply With Quote