In article <11**********************@o13g2000cwo.googlegroups .com>
Vinu <vi*********@yahoo.com> wrote:
here it is not a wide char i want a unicode support cmd argumentts ie
wchar_t* argv[]
thanks
Your question (from the subject line) was about printing argv.
Presumably this means "the argv passed to main upon program startup".
(Your sample code was then in C++ rather than C, suggesting that
either you are not sure which language you are using, or that you
posted to the wrong newsgroup, or perhaps even both. Note that
when using "google groups", you are using Google's access portal
to the USENET newsgroup system. For the most part, USENET has
absolutely nothing to do with Google.)
With one exception, an implementation that passes "wchar_t **"
instead of "char **" as the second argument to the initial call to
main() is *not* a strictly conforming ANSI/ISO C implementation.
The exception occurs if that implementation makes wchar_t synonynous
with plain char, so that "wchar_t **" and "char **" are actually
the same type.
In any case, it is pretty silly to attempt to use wchar_t for argv.
(Only Microsoft would do something that dumb... :-) ) Use UTF-8.
It Just Works.
--
In-Real-Life: Chris Torek, Wind River Systems
Salt Lake City, UT, USA (40°39.22'N, 111°50.29'W) +1 801 277 2603
email: forget about it
http://web.torek.net/torek/index.html
Reading email is like searching for food in the garbage, thanks to spammers.