Charge
Member
Hi
just wondering if anyone has solved the problem in which printing floats to a character string using sprintf, eg:
char pszMyString[25];
sprintf(pszMyString,"Float = %f", 0.5f);
GpTextOut(NULL,&gpDraw[nflip],10,10,(char*)pszMyString,0xe0);
this simply crashes my GP32 and the emu, (but it works with characters + ints).
Thanks.
just wondering if anyone has solved the problem in which printing floats to a character string using sprintf, eg:
char pszMyString[25];
sprintf(pszMyString,"Float = %f", 0.5f);
GpTextOut(NULL,&gpDraw[nflip],10,10,(char*)pszMyString,0xe0);
this simply crashes my GP32 and the emu, (but it works with characters + ints).
Thanks.