The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
concatenating static string to records in data file gillbates Shell Programming and Scripting 5 06-22-2006 03:22 PM
How to display unicode characters / unicode string jackdorso High Level Programming 3 05-20-2005 10:09 AM
unicode rein UNIX for Advanced & Expert Users 2 01-18-2005 11:40 AM
converting string to unicode webtekie Shell Programming and Scripting 1 07-21-2004 08:43 AM
Static IP google IP Networking 7 05-18-2003 04:33 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-19-2005
Registered User
 

Join Date: Jan 2005
Posts: 5
How to make static unicode string?

In Windows,
wchar_t *pStr = L"Hello";

works, but I can't find the equivalent to Unix system.
How can I make static stack-memory-based wide character string in C in Unix?
Reply With Quote
Forum Sponsor
  #2  
Old 01-19-2005
Registered User
 

Join Date: Jan 2005
Posts: 5
My Mistake!
It works. I used
short *pStr = L"Hello";
in real code. Which made pointer conversion warning.
Above code of wchar_t works.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0