ts_error.c
来自「tslib-0.1.1.rar 源码 触摸屏 管理」· C语言 代码 · 共 38 行
C
38 行
/* * tslib/src/ts_error.c * * Copyright (C) 2001 Russell King. * * This file is placed under the LGPL. Please see the file * COPYING for more details. * * $Id: ts_error.c,v 1.1.1.1 2001/12/22 21:12:06 rmk Exp $ * * Error handling for tslib. */#include "config.h"#include <stdarg.h>#include <stdio.h>static int stderrfn(const char *fmt, va_list ap){ return vfprintf(stderr, fmt, ap);}/* * Change this hook to point to your custom error handling function. */int (*ts_error_fn)(const char *fmt, va_list ap) = stderrfn;int ts_error(const char *fmt, ...){ va_list ap; int ret; va_start(ap, fmt); ret = ts_error_fn(fmt, ap); va_end(ap); return ret;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?