⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fplog.cpp

📁 游戏编程精华02-含有几十个游戏编程例子
💻 CPP
字号:
/************************************************************
 * fplog.cpp - Funcion de log de errores V2.06.002
 *
 * (c) Copyright 1996-2000 Sabarasa Entertainment
 * For internal use only.
 ************************************************************/               

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <conio.h>
#include <malloc.h>

#include "mainptah7.h"

// Funcion de log de errores
void
fplog( char * fmt, ... )
{
	FILE *fp;
	va_list args;
	
	if ( fp = fopen( "debug.log", "at" ) )
	{
		va_start( args, fmt );
		// Al archivo
		vfprintf( fp, fmt, args );

		va_end( args );
		
		fclose( fp );
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -