wcLogPrintf( )

Syntax . . Returns . . Tips . . Program Example . . Related Topics . . A-Z Index . . Home

Prints output to a log file.

Example

returnCode = wcLogPrintf(cntrlHandle, "%4.00f %25s\n", 
                         price, itemDescription);

Syntax

int wcLogPrintf(void *controlHandle, 
                char *format, 
                valueToPrint[, valueToPrint]...)
controlHandleThe handle to the control structure.
formatA formatting string that specifies how to convert and print the output. Syntax is identical with that used in the C printf( ) function.
valueToPrintValue to be converted, formatted, and printed.

Returns

0Success.
Error codeFailure or exception. For a list of possible error codes, see Error Messages.

Tips

Program Example

The following code shows how wcLogPrintf( ) is used in an application.


	wcGetVariable(wcp, "$MIval", &pageId);

	wcLogPrintf(wcp, "The current value of $MIval is %s\n", pageId);

Related Topics

wcCheckLogSize( )
wcMessagePage( )
wcPrintf( )


Top of Page . . Syntax . . Returns . . Tips . . Program Example . . A-Z Index . . Home