Miscellaneous Functions


The miscellaneous functions are those that do not fit nicely into any other categories.

TutExit — call exit handlers and terminate process

void TutExit(status) 
T_INT4 status; 

TutGetenv — get a SmartSockets environment variable

T_BOOL TutGetenv(name, value_return) 
T_STR name; 
T_STR *value_return; 

TutGetOutFlushFunc — find the function used for TutOutFlush output

T_OUT_VA_FLUSH_FUNC TutGetOutFlushFunc() 

TutGetOutputFunc — find the function used for TutOut output

T_OUT_VA_FUNC TutGetOutputFunc() 

TutOut — unconditional printf-style output to a SmartSockets process output window

void TutOut(format_str, ...) 
T_STR format_str; 

TutOutFlush — unconditional printf-style output to stdout and flush

void TutOutFlush(format_str, ...) 
T_STR format_str; 

TutPutenv — set a SmartSockets environment variable

T_BOOL TutPtrArySwapItems(name_and_value) 
T_STR name_and_value; 

TutSetOutFlushFunc — set the function to use for TutOutFlush output

void TutSetOutFlushFunc(flush_func) 
T_OUT_VA_FLUSH_FUNC flush_func; 

TutSetOutputFunc — set the function to use for TutOut output

void TutSetOutputFunc(output_func) 
T_OUT_VA_FUNC output_func; 

TutSleep — suspend execution for specified interval

T_BOOL TutSleep(interval) 
T_REAL8 interval; 

TutSystem — execute a shell command

T_INT4 TutSystem(command) 
T_STR command; 

TutWinSetOutputListBox — set Windows output function

void TutWinSetOutputListBox(list_box_hwnd, max_num_lines) 
HWND list_box_hwnd; 
T_INT4 max_num_lines; 

TIBCO SmartSockets™ API Quick Reference
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com