error.c

来自「the embedded GUI for SamSung s3c2410 cpu」· C语言 代码 · 共 47 行

C
47
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?