songshu5 发表于 2013-7-7 15:33:28

cvavr中sprintf怎么用?

今天看程序,里面有这样的一句话“sprintf(lcd_buffer,"Volt_set: %2d.%02dV",j/100,j%100);”开头也没定义,后来觉得应该是编译器自带的,但是没找到。请问这个函数在哪里?如何使用?非常感谢回答

songshu5 发表于 2013-7-10 16:34:01

这个问题有没有会的啊,是我问的太肤浅了,没人愿意回答?还是问的太难了?

guew 发表于 2013-7-10 16:45:02

cvavr的帮助中有的,搜一下好了。
int sprintf(char *str, char flash *fmtstr [ , arg1, arg2, ...])
      this function is identical to printf except that the formatted text is placed in the null terminated character string str.
The function returns the number of outputed characters.
页: [1]
查看完整版本: cvavr中sprintf怎么用?