cancel
Showing results for 
Search instead for 
Did you mean: 

sprintf

carnett1
Associate II
Posted on June 13, 2011 at 22:53

I am using cosmic tools with the stm8-discovery board.

char buffer [15];

u8 n;

double x;

x = 300.02;

n=sprintf(buffer,''%.2f'',x);

when i run it n = null and the buffer is empty.

what is my problelm?

charles arnett

0 REPLIES 0