wcExit( )

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

Frees the control handle and any memory that was allocated for the application.

Example

return wcExit(cntrlHandle);

Syntax

int wcExit(void *controlHandle)
controlHandleThe handle to the control structure.

Returns

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

Tips

Program Example

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

int main(argc, argv)
        int     argc;
        char    **argv;
{
        void        *wcp;

        wcInit(argc, argv, &wcp);

        requestLoop();

        return wcExit(wcp);
}

In this code fragment, it is assumed that the function requestLoop( ) has been declared to handle user requests.

Related Topics

wcInit( )


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