Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Unicode problem
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 8th August 20:38
keon lee
External User
 
Posts: 1
Default Unicode problem



#include <stdio.h>
#include <wchar.h>

int main(void)
{
wchar_t str[50];
swprintf(str, 50, L"test:%d\n", 1234);

wcscpy(str, L"test");

wprintf(str);

return 0;
}

E:/QNX_Working/ucode/main.c: In function `main':
E:/QNX_Working/ucode/main.c:7: warning: passing arg 3 of `swprintf' from
incompatible pointer type
E:/QNX_Working/ucode/main.c:9: warning: passing arg 2 of `wcscpy' from
incompatible pointer type

I've tried this code in solaris. and It does work correctly. what am I
wrong?
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666