sprintf with CW6.2 and MCF51JM

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

sprintf with CW6.2 and MCF51JM

1,068件の閲覧回数
yb
Contributor IV

Hi,

 

I'm trying to modify a 9S08JM code for a MCF51JM target.

 

But the sprintf function doesn't work the same on theses 2 targets...

 

With the 9S08 :

 

var = 12 ;

sprintf(temp, "%04d", var) ;

==> temp = "0012" ==> OK

 

With the MCF :

==> temp = "12" ==> NOK...

 

Perhaps some directives ? Or a special CW configuration ?

 

Thanks for your answers.

 

Yvan

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

506件の閲覧回数
yb
Contributor IV

Sorry, I've found the answer :

 

https://community.freescale.com/message/52981#52981

 

Yvan

0 件の賞賛
返信