wcPrintf( )

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

Prints output to the browser connection. Similar to the printf( ) function in C.

Example

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

Syntax

int wcPrintf(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.

Program Example

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


    wcPrintf(wcp, "%4.00f %25s\n", price, itemDescription);

Related Topics

wcLogPrintf( )
wcMessagePage( )


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