C언어에서 디버그 메시지 출력 2

#include <stdio.h>
#include <stdarg.h>

void log( char *format, ...)
{
va_list ap;
FILE   *fp = NULL;

fp = fopen( "log.txt", "a");

va_start( ap, format);

vfprintf( fp, format, ap);
fprintf( fp, "\n");

fclose(fp);

va_end(ap);
}

이 글과 관련있는 글을 자동검색한 결과입니다 [?]

by amplengin2 | 2009/08/05 10:31 | 트랙백 | 덧글(0)

트랙백 주소 : http://amplengin2.egloos.com/tb/1487799
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

◀ 이전 페이지다음 페이지 ▶