Prints output to the browser connection. Similar to the printf( ) function in C.
returnCode = wcPrintf(cntrlHandle, "%4.00f %25s\n", price, itemDescription);
int wcPrintf(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 wcPrintf( ) is used in an application.
wcPrintf(wcp, "%4.00f %25s\n", price, itemDescription);
wcLogPrintf( )
wcMessagePage( )