AnsweredAssumed Answered

sprintf error?

Question asked by SmartIC on Sep 4, 2012
Latest reply on Sep 5, 2012 by draeman

DSP:BF518

Software:VDK

Code:

section ("sdram0_bank1") unsigned char g_now_txt_msg[256];

 

In function:

.....

int tmp_f;

memset(&g_now_txt_msg[0],0,256);

sprintf(&g_now_txt_msg[0],"%f\0",tmp_f);

......

Outcomes