The XDR library provides the primitive for pointers so that structures referenced within other structures can be easily serialized, deserialized, and released.
The XDR library includes the following routine for pointers to structures:
Routine