Passing a Fixed-Length Array Example
This section describes the procedure for passing a fixed-length array example.
If the size of the array is known in advance, the programmer can
call the xdr_vector subroutine to serialize fixed-length
arrays, as in the following example:
int intarr[SIZE];
xdr_intarr(xdrsp, intarr)
XDR *xdrsp;
int intarr[];
{
int i;
return (xdr_vector(xdrsp, intarr, SIZE, sizeof(int),
xdr_int));
}