Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
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 cus-
     tom 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)

								  TS_ERROR_FN(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=ts_error_fn&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help