#include <rpc/rpc.h> void xdr_free(xdrproc_t proc, char *objp);
The xdr_free() function recursively frees the object pointed to by the pointer passed in.
No authorization is required.
None.
In case of an exception, the errno global variable is set to EUNKNOWN.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of &1 API. |
The following example shows how xdr_free() is used.
Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.
#include <rpc/rpc.h> main() { CLIENT *cl; char *outparam; int inparam; ... cl = clnt_create(...); ... outparam = NULL; clnt_call(cl, MYPROC, xdr_int, &inparam, xdr_wrapstring, &outparam, timeout); ... xdr_free(xdr_wrapstring, &outparam); ... }
[ Back to top | Remote Procedure Call (RPC) APIs | APIs by category ]