mirror of
https://github.com/JamesonHuang/OpenWrt_Luci_Lua.git
synced 2024-11-23 13:50:11 +00:00
update testSprintf
This commit is contained in:
parent
787022ed4d
commit
439037d5a3
16
1_3.test_code/c_test/testSprintf/testSprintf.c
Normal file
16
1_3.test_code/c_test/testSprintf/testSprintf.c
Normal file
@ -0,0 +1,16 @@
|
||||
/*************************************************************************
|
||||
> File Name: testSprintf.c
|
||||
> Description:
|
||||
> Conclusion:
|
||||
> Author: rh_Jameson
|
||||
> Created Time: 2015年06月29日 星期一 13时34分48秒
|
||||
************************************************************************/
|
||||
|
||||
#include<stdio.h>
|
||||
int main(){
|
||||
char buffer[50];
|
||||
int val = 10;
|
||||
sprintf(buffer, "helloworld %d", val);
|
||||
printf("%s", buffer);
|
||||
printf("%d, %d", __LINE__, __func__);
|
||||
}
|
Loading…
Reference in New Issue
Block a user