Remember me

Lost Password?

Register now!


Who's Online
98 user(s) are online (80 user(s) are browsing Forums)

Members: 0
Guests: 98


Support us!


Report message:*

Re: vswprintf implementation (need floating point support)

Subject: Re: vswprintf implementation (need floating point support)
by kas1e on 2021/1/8 20:21:27

While it surely not related to salas00 implementation of swprintf, find out today that I have bugs with some code I tried to port, which have such stuff:

wchar_t w[50], w2[50];
swprintf(w50L"Slot %i"i);

Where "i" is 0,1 or 2 (and it have it for sure, I checked by printf). But then, such a swprintf draw on the screen not "Slot 1" or "Slot 2", but instead "Slot %i". Like it didn't take into account. And I can't be sure, but probably that causes sometimes crashes as well.

Is it just bad code of swprintf there? Code done on windows, so everything possible.

EDIT: oh, replaced %i on %d and it works!

Didn't we have %i and %I implemented there? And if not, can it be that cause of crashes, or it surely not related ?

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project