티스토리 툴바



#include <stdarg.h>
#include <stdio.h>
void WriteLog(const char* szFormat, ...)
{
 va_list args;
 va_start(args, szFormat);
 {
  char buf[1024] = {0,};
  vsprintf(buf, szFormat, args);
  printf("%s", buf);
 }
 va_end(args); 
}

void main()
{
 WriteLog("%s", "Hello");
}

저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License
당신의 댓글이 블로거를 춤추게 합니다.
Posted by 열공!! Oz™