GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TS_ERROR_FN(3) tslib TS_ERROR_FN(3)

ts_error_fn - use a custom error function for libts library errors

#include <tslib.h>

int (*ts_error_fn)(const char *fmt, va_list ap);

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.

user defined.

ts_read(3), ts_open(3), ts_setup(3), ts_close(3), ts.conf(5)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.