wchar_t

Discussion in 'C Programming' started by Ioannis Vranos, Feb 28, 2008.

  1. wchar_t was introduced in C95, right?
    Ioannis Vranos, Feb 28, 2008
    #1
    1. Advertising

  2. Ioannis Vranos

    Guest

    On Feb 27, 6:52 pm, Ioannis Vranos <>
    wrote:
    > wchar_t was introduced in C95, right?


    No, it's C90. Plus C90 had mblen, wcstombs, mbstowcs, wctomb, mbtowc
    (and maybe others) declared in stdlib.h.

    Yevgen
    , Feb 28, 2008
    #2
    1. Advertising

  3. Ioannis Vranos

    Micah Cowan Guest

    Ioannis Vranos wrote:
    > wchar_t was introduced in C95, right?


    Nope; in C89. And most if not all of the wchar_t facilities found in
    stdlib.h (conversion between mbs and wcs, etc).

    C95 added all the iswalpha(), etc, in wctype.h, and wprintf(), etc in
    wchar.h. C99 has added just a few more.

    The rationale document has a good deal of information about this in the
    MSE annex. http://www.open-std.org/jtc1/sc22/wg14/www/C99RationaleV5.10.pdf

    --
    Micah J. Cowan
    Programmer, musician, typesetting enthusiast, gamer...
    http://micah.cowan.name/
    Micah Cowan, Feb 28, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Adrian Cornish
    Replies:
    2
    Views:
    8,181
    Adrian Cornish
    Jul 12, 2003
  2. Bren
    Replies:
    4
    Views:
    4,113
    Peter van Merkerk
    Oct 7, 2003
  3. sorty
    Replies:
    4
    Views:
    20,701
    Rolf Magnus
    Nov 25, 2003
  4. Jon Willeke

    wchar_t -> UTF-8?

    Jon Willeke, Feb 8, 2004, in forum: C++
    Replies:
    2
    Views:
    7,529
    Tilman Kuepper
    Feb 9, 2004
  5. Replies:
    3
    Views:
    1,080
    James Kanze
    Aug 15, 2008
Loading...

Share This Page