Primitive for Discriminated Unions

A discriminated union is a C language union, which is an object that holds several data types.

One arm of the union is an enumeration value, or discriminant, that holds a specific object to be processed over the system first. The discriminant is an enumeration value (enum_t).

The XDR library includes the following subroutine for discriminated unions:

Item Description
xdr_union Translates between discriminated unions and their external representations.