Zeroed WCHAR

This is a discussion on Zeroed WCHAR within the C Programming forums, part of the General Programming Boards category; Hello Someone knows what could be a zeroed WCHAR? Thanks...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    39

    Zeroed WCHAR

    Hello

    Someone knows what could be a zeroed WCHAR?

    Thanks

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Probably an array of WCHARs, that is, a string, which is initialized to all zeros? . . . .
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    39
    Zeroed WCHAR is not a NULL terminator in Unicode?

    Thanks

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Are you asking whether strings consisting of Microsoft's WCHAR use '\0' (a NULL terminator) to terminate strings just like ordinary C strings? If so, I think the answer is yes.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Do structres get zeroed at declaration?
    By Govalant in forum C Programming
    Replies: 7
    Last Post: 07-05-2007, 01:35 PM
  2. strstr on a wchar array
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-28-2006, 06:42 AM
  3. WChar to char
    By MK4554 in forum C++ Programming
    Replies: 19
    Last Post: 04-20-2006, 12:14 AM
  4. C Datatype WCHAR
    By GUI_XP in forum C Programming
    Replies: 2
    Last Post: 11-29-2002, 05:24 PM
  5. char to WCHAR
    By pinkcheese in forum Windows Programming
    Replies: 5
    Last Post: 07-28-2002, 06:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21