Pelles C forum

C language => Pocket PC and Smartphone questions => Topic started by: Moonglow on March 15, 2010, 03:32:36 PM

Title: [bug?]swprintf function proto for Win32 and PocketPC
Post by: Moonglow on March 15, 2010, 03:32:36 PM
Hello,

i make cross platform project with Pellec C 6.00.4 and i have strange thing... with swprintf function...

for win32 proto is
Code: [Select]
int swprintf(wchar_t * restrict dst, size_t max, const wchar_t * restrict format, ...);
...but for PocketPC compiler give me an error... about second argument... so correct proto was
Code: [Select]
int swprintf(wchar_t * restrict dst,  const wchar_t * restrict format, ...);

i use preprocessor to solve this problem...  ( different call for win32 and pocketpc ) so.. this is correct situation ? or bug ? microsoft use second variant for win32 and ppc...
Title: Re: [bug?]swprintf function proto for Win32 and PocketPC
Post by: Kaljj on April 07, 2010, 08:39:29 PM
Hi Moonglow,

in the headerfile wchar.h is
for window ce defined swprintf(wchar_t *, const wchar_t *, ...);

I hope is helpfull
Kaljj