xdr_vector Subroutine

Purpose

Translates between fixed-length arrays and their corresponding external representations.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>

xdr_vector (xdrs, arrp, size, elsize, elproc)
XDR * xdrs;
char * arrp;
u_int  size,  elsize;
xdrproc_t  elproc;

Description

The xdr_vector subroutine is a filter primitive that translates between fixed-length arrays and their corresponding external representations.

Parameters

Item Description
xdrs Points to the eXternal Data Representation (XDR) stream handle.
arrp Specifies the pointer to the array.
size Specifies the element count of the array.
elsize Specifies the size of each of the array elements.
elproc Translates between the C form of the array elements and their external representation. This is an XDR filter.

Return Values

Upon successful completion, this routine returns a value of 1. If unsuccessful, it returns a value of 0.