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.

调用sscanf 结果不对



DSP: F2812, CCS3.3

...

int par0=0,par1=0,par2=0;

...

inpstr="S 12 51 62";

sscanf(inpstr,"S %d %d %d",&par0,&par1,&par2);

结果不是:par0=12,par1=51,par2=62.

多谢!