Man page - ts_error_fn(3)
Packages contas this manual
- ts_config(3)
- ts_conf_get(3)
- ts_open(3)
- ts_read_raw(3)
- ts_setup(3)
- ts_read(3)
- ts_close(3)
- ts_libversion(3)
- ts_uinput(1)
- ts_finddev(1)
- ts_read_raw_mt(3)
- ts.conf(5)
- ts_verify(1)
- ts_test(1)
- ts_conf_set(3)
- ts_error_fn(3)
- ts_read_mt(3)
- ts_open_restricted(3)
- ts_harvest(1)
- ts_get_eventpath(3)
- ts_fd(3)
- ts_print_raw(1)
- ts_print_mt(1)
- ts_print(1)
- ts_test_mt(1)
- ts_calibrate(1)
- ts_conf(1)
- ts_close_restricted(3)
Package: libts0t64
apt-get install libts0t64
apt-get install libts0t64
Manuals in package:
Documentations in package:
Manual
| TS_ERROR_FN(3) | tslib | TS_ERROR_FN(3) |
NAME
ts_error_fn - use a custom error function for libts library errors
SYNOPSIS
#include <tslib.h> int (*ts_error_fn)(const char *fmt, va_list ap);
DESCRIPTION
ts_error_fn() is by default implemented similar like this:
static int errfn(const char *fmt, va_list ap)
{
return vfprintf(stderr, fmt, ap);
}
inside the library. It is exposed to the user and can be replaced by a custom error function. Simply assign your custom implementation to ts_error_fn like
ts_error_fn = my_custom_errfn;
It can be used to write the system log files, for example. The ts_print_mt test program has an example.
RETURN VALUE
user defined.
SEE ALSO
ts_read(3), ts_open(3), ts_setup(3), ts_close(3), ts.conf(5)