Problems trying to use sprintf

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems trying to use sprintf

804 Views
juanignaciotroi
Contributor III

Hello. I am using FRDM KE02 + CWIDE and Processor Expert.

 

When trying to use fuctions such as strcpy of sprintf the program builds correctly, but de MCU gets stucked when reaching those functions. Obviously, I have included the libreries

#include <stdio.h>

#include <string.h>

 

For instance, this doesnt work:

 

int h=33;
char str2;
sprintf(str2, "Value of N = %d",h);
lcd_gotoxy(0,0);
lcd_write_word(str2);

 

thanks

Labels (1)
0 Kudos
Reply
1 Reply

682 Views
juanignaciotroi
Contributor III

I have just solved it

0 Kudos
Reply