OSF DCE Application Development Guide--Introduction and Style Guide
A Sample Application
/* Free it... */
rpc_string_free(&string_binding, &status);
if (status != rpc_s_ok)
{
print_error("rpc_string_free()", status);
exit(1);
}
fprintf(stdout,
"sample_client: Calling [remote] sample_call()...0);
sample_call(binding_h, &rpc_status, &rpc_remote_status);
if (rpc_remote_status != error_status_ok)
{
print_error("sample_call()", rpc_remote_status);
exit(1);
}
fprintf(stdout,
"sample_client: Remote call option successfully completed.0);
}
fprintf(stdout, "sample_client: Calling rpc_string_free()...0);
rpc_string_free(&server_princ_name, &status);
if (status != rpc_s_ok)
{
print_error("rpc_string_free()", status);
exit(1);
}
}
/******
*
* do_client_command_line -- Get and interpret arguments and options from
* the command line, and do other setup related to the
* command line’s contents.
*
* Called from main().
*
******/
124246 Tandem Computers Incorporated A− 87










