printf();
使用方式:
①
uint8_t *rmt_str=0;
rmt_str="ERROR";
printf("%s\r\n",rmt_str);
②
int a=1;
float b=1.0;
char str[12]="Hello World";
printf("This is an example of printf:\n");
printf("a is %d,b is %f,and a+b=%f",a,b,a+b);
printf("I want to say,%s",str);