NO

Author Topic: [bug?]swprintf function proto for Win32 and PocketPC  (Read 2396 times)

Moonglow

  • Guest
[bug?]swprintf function proto for Win32 and PocketPC
« 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...

Kaljj

  • Guest
Re: [bug?]swprintf function proto for Win32 and PocketPC
« Reply #1 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