Re: Cross-platform apps



Enrico =?UTF-8?Q?Tr=C3=B6ger?= writes:
I had some trouble with strtod() on Windows. This is an ANSI-C
function to convert a string into a double value. strtod() detects
also hex numbers like 0x12af4b.

That is a relatively recent (ISO C99) extension, as far as I know. The
Microsoft C library is rather older. You need to look out for things
like this also if you intend your code to be portable to older Unixes,
not just Windows.

--tml




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