Pointer Declarations

Pointer declarations are made in XDR exactly as they are in C.

The programmer cannot send pointers over a network, but can use XDR pointers for sending recursive data types such as lists and trees. In XDR language, the type is called optional-data, instead of pointer. Pointer declarations have the following form in XDR language:

pointer-declaration:
      type-ident "*" variable-ident
An example of a pointer declaration is:

listitem *next;  -->  listitem *next;