#9 stdlib.h, incorrect return type, missing function

WSL
closed
Earnie Boyd
None
Support
fixed
featured-pre-wsl
False
2013-02-18
2000-11-26
Anonymous
No

stdlib.h: _wtof() missing
stdlib.h: wgetenv() returns int, should return wchar_t*

Cheers,
mark_jordan@ieee.org

Discussion

  • Danny Smith
    Danny Smith
    2000-12-08

    I have submitted patch for correcting return type of _wgetenv as indicated.

    I don't know what _wtof is. What standard does it belong too?

    Danny

     
    • assigned_to: nobody --> earnie
     
  • Earnie Boyd
    Earnie Boyd
    2001-01-30

    • status: open --> closed-fixed
     
  • Earnie Boyd
    Earnie Boyd
    2001-01-30

    The return value of _wgetenv() has already been resolved.

    There is not _wtof() function defined at msdn.microsoft.com.

    Earnie.

     
  • Paul Garceau
    Paul Garceau
    2001-01-31

    Ok, did some research on this: (not sure if this is correct place to add the comment)

    _wtof() is defined for Watcom 11.0: convert "wide character string to double" (int).
    [http://www.qnx.com/literature/qnx_sysarch/photon.html] web-page search for _wtof()

    "wide character string to double" precision (aka: wcstod()) is part of WPI (World Portability Interface) and
    has a correllated reference under ISO C standard (strtod()).

    WPI is defined by X/Open CAE specifications (appx 1996) to support the wide-character data type, especially for "tru64bit" type processors.
    [http://www.tru64unix.compaq.com/faqs/publications/base_doc/DOCUMENTATION/HTML/AA-Q0R4C-TE_html/i18nAP1.html] search web page for: wcstod

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-04

    • labels: mingw runtime (deprecated use WSL) -->
    • status: closed-fixed --> closed
    • resolution: --> fixed
    • category: --> Known_bugs
    • milestone: --> WSL
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-18

    • type: --> Support
    • category: Known_bugs --> featured-pre-wsl
    • patch_attached: --> False