update testSprintf

This commit is contained in:
JamesonHuang 2015-07-02 22:51:08 +08:00
parent 787022ed4d
commit 439037d5a3
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
/*************************************************************************
> 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__);
}