Prints output to a log file.
returnCode = wcLogPrintf(cntrlHandle, "%4.00f %25s\n", price, itemDescription);
int wcLogPrintf(void *controlHandle, char *format, valueToPrint[, valueToPrint]...)
controlHandle | The handle to the control structure. |
format | A formatting string that specifies how to convert and print the output. Syntax is identical with that used in the C printf( ) function. |
valueToPrint | Value to be converted, formatted, and printed. |
0 | Success. |
Error code | Failure or exception. For a list of possible error codes, see Error Messages. |
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);
wcCheckLogSize( )
wcMessagePage( )
wcPrintf( )