void record(char *Format, ...)
{
va_list arg_ptr;
int iLen;
char record[512];
/********************************************************************/
/* If debug is not active, nothing to do here... */
/********************************************************************/
if (!fDebug) {
return;
} /* endif */
va_start(arg_ptr, Format);
iLen = vsprintf(record, Format, arg_ptr);
va_end(arg_ptr);
record[iLen] = 0x00; record[iLen] = 0x00;
printf("%s", record);
return;
}
Figure 302. Sample WSG Server Logon Exit Program (Part 36 of 50)
/**********************************************************************/
/*@function handler() */
/* */
/* Parameters: */
/* */
/* int iSignal - value of the signal that caused the handler to be */
/* invoked. SIGABRT, SIGTERM, etc. */
/**********************************************************************/
void handler(int iSignal)
{
ERRSTRUCT esErrCode;
_INTRPT_Hndlr_Parms_T Signal;
_INTRPT_Hndlr_Parms_T *pSignal = &Signal
char *pszMsgFile = NULL;
struct {
int Bytes_Return;
int Bytes_Available;
int Length_Message_Returned; int Length_Message_Available;
int Length_Help_Returned;
int Length_Help_Available;
char Message[256];
char Message_Help[256];
} rtvm0100;
Figure 302. Sample WSG Server Logon Exit Program (Part 37 of 50)
588 OS/400 TCP/IP Configuration and Reference V4R4