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

📄 error.c

📁 the embedded GUI for SamSung s3c2410 cpu based board.is microwindows0.90
💻 C
字号:
/* * Reconfigurable error handler. * * Note: There are two identical copies of this file.  One is nanox/error.c, * and is used by Nano-X client apps, the other is engine/error.c and is * used by everything else (including the Nano-X server and apps using the * Win32 API).  If you change one, you probably want to make the same changes * to the other copy. */#include <stdio.h>#include <stdarg.h>#include <string.h>#if (UNIX | DOS_DJGPP)#include <unistd.h>#endif#include "device.h"#if MW_FEATURE_GDERROR/** * Write error message to stderr stream. */intGdError(const char *format, ...){	va_list args;	char 	buf[1024];	va_start(args, format);	vsprintf(buf, format, args);	write(2, buf, strlen(buf));	va_end(args);	return -1;}/** * Write error message to null device (discard). */intGdErrorNull(const char *format, ...){	return -1;}#endif /* MW_FEATURE_GDERROR*/

⌨️ 快捷键说明

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