|
From: Egon A. <po...@ta...> - 2004-04-18 21:01:25
|
Egon Andersen wrote: > Michael Bester wrote: > >> Egon Andersen wrote: >> >>> Hi, >>> >>> I know that MinGW has been depending on msvcrt.dll for handling >>> printf() and therefore also had problems with printing 80-bit long >>> double. >>> >>> Is it still not possible to print 80-bit long double? >>> I'll be satisfied with a 'long_double_to_string()'-like function if >>> it exist. >>> I remember to have seen some efford being put on replacing >>> msvcrt.dll, but haven't been able to locate it again. >>> >>> Best regards >>> Egon Andersen >>> >> Hi Egon, >> >> Did you try the ecvt family of functions ? IIRC the qecvt is the >> right one. >> It converts a long double to string. >> >> regards, >> Michael. > > > No I haven't. I saw these long time ago on my Linux platform, where they > are marked 'obsolete' and sprintf() is recommended instead. And they do > not exist in the ISO-C99 standard either. > But if they exist and work on MSWindoze, I'll give it a try in the > absense of better functions. > Say, are you sure that qecvt() exist? I've searched all header-files and didn't find anyone of the cvt-functions capable of handling long double. Is it a brand new feature/function in MinGW (my MinGW is a few months old). I also searched MSDN, but didn't find qecvt() (I can find ecvt(), but that is not interesting.) Best regards Egon Andersen |