/* XDR a fixed length array. Unlike variable-length arrays, the storage of fixed length arrays is static and unfreeable.  */
bool_t xdr_vector(XDR *xdrs, char *basep, unsigned int nelem, unsigned int elemsize, xdrproc_t xdr_elem)
/* XDR a fixed length array. Unlike variable-length arrays, the storage of fixed length arrays is static and unfreeable.  */
bool_t xdr_vector(XDR *xdrs, char *basep, unsigned int nelem, unsigned int elemsize, xdrproc_t xdr_elem)
{
    register unsigned int i;
    register char *elptr;
    elptr = basep;
    for (i = 0; i < nelem; i++) {
        if (!(*xdr_elem) (xdrs, elptr, LASTUNSIGNED)) {
            return (FALSE);
        }
        elptr += elemsize;
    }
    return (TRUE);
}