X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7998170f46f28722a39174340594696259786f99..45f84c01ffb2bc5cb4379ddda8d14c401c9f8351:/stglibs/common.lib/debug.c diff --git a/stglibs/common.lib/debug.c b/stglibs/common.lib/debug.c deleted file mode 100644 index 8a2d15c6..00000000 --- a/stglibs/common.lib/debug.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - ***************************************************************************** - * - * File: debug.c - * - * Description: ÷Ù×ÏÄ ÏÔÌÁÄÏÞÎÏÊ ÉÎÆÏÒÍÁÃÉÉ × log ÆÁÊÌ - * - * $Id: debug.c,v 1.2 2005/11/16 16:19:40 nobunaga Exp $ - * - ***************************************************************************** - */ - -#include -#include -#include - -#include "debug.h" - - -/* - ***************************************************************************** - * -= óÏÚÄÁÎÉÅ ÚÁÐÉÓÉ × log-ÆÁÊÌÅ =- - ***************************************************************************** - */ -void PrintfLog(FILE * logFile, char * scriptName, char * fmt, ...) -{ - #ifndef DEMO - va_list vaList; - char buff[MAX_LOG_BUFF_LEN]; - time_t curTime; - char curTimeCh[26]; - - if (logFile) - { - va_start(vaList, fmt); - vsprintf(buff, fmt, vaList); - va_end(vaList); - - curTime = time(NULL); - ctime_r(&curTime, curTimeCh); - curTimeCh[strlen(curTimeCh)-1] = 0; - fprintf(logFile, "%s [%s]: %s\n", scriptName, curTimeCh, buff); - } - #endif - return; -} /* PrintfLog() */ - -/* EOF */ -