This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ccs中msp430g2553中sprintf的问题

Other Parts Discussed in Thread: MSP430G2553

程序主要部分如下:

#include <stdio.h>

#include <msp430g2553.h>

float input_voltage = 0;

char str_show[10];

sprintf(str_show,"%-04.3f",input_voltage);

input_voltage的值是正确变动的

sprintf运行后对str_show的值不产生效果

是ccs中不支持sprintf么