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
tt_error(library call) tt_error(library call)

tt_error — capture ToolTalk function errors

#include &<Tt/tt_c.h>
void tt_error(
const char *funcname,
Tt_status status);

The tt_error function is a publicly-known null function. It is called by the ToolTalk library just before it returns from any ToolTalk API call that has a status other than TT_OK. The caller passes the name of the function that is about to return and the function's status code.

You can use this function to set a dbx breakpoint to quickly catch and trace back any ToolTalk errors. You can also interpose this function, for example, to log ToolTalk errors to stderr.

Specifies the name of the function.
Specifies the function's return status value.

None.

The following code example shows how an application might interpose this function to log ToolTalk errors to stderr:

void tt_error(const char *funcname, Tt_status status) {

fprintf(stderr, "ToolTalk function %s returned %s.0,
funcname, tt_status_message(status)); }

Tt/tt_c.h - Tttt_c(5)


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

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