The xdr_union() call translates between a discriminated C union and its external representation.
Syntax
#include <rpc\rpc.h> bool_t xdr_union(xdrs, dscmp, unp, choices, dfault) XDR *xdrs; int *dscmp; char *unp; struct xdr_discrim *choices; xdrproc_t dfault;
Parameters
xdrs
Return Values
The value 1 indicates success; the value 0 indicates an error.