Frees the control handle and any memory that was allocated for the application.
return wcExit(cntrlHandle);
int wcExit(void *controlHandle)
| controlHandle | The handle to the control structure. |
| 0 | Success. |
| Error code | Failure or exception. For a list of possible error codes, see Error Messages. |
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.