OpenWrt_Luci_Lua/1_3.test_code/c_test/testSprintf.c

17 lines
512 B
C
Raw Normal View History

2015-06-30 05:40:33 +00:00
/*************************************************************************
> File Name: testSprintf.c
> Description:
> Conclusion:
> Author: rh_Jameson
> Created Time: 20150629 133448
************************************************************************/
#include<stdio.h>
int main(){
char buffer[50];
int val = 10;
sprintf(buffer, "helloworld %d", val);
printf("%s", buffer);
printf("%d, %d", __LINE__, __func__);
}