Problems trying to use sprintf

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problems trying to use sprintf

850件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 返信

728件の閲覧回数
juanignaciotroi
Contributor III

I have just solved it

0 件の賞賛
返信