#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. |
See Code disclaimer information for information pertaining to code examples.
The following example shows how xdr_free() is used:
#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); ... }
Top | Remote Procedure Call (RPC) APIs | APIs by category |