DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

xdr_sizeof(S)


xdr_sizeof -- library routine for external data representation

Synopsis

cc [options] file -lnsl
#include <rpc/xdr.h>

unsigned long xdr_sizeof(xdrproc_t func, void *data);

Description

XDR library routines allow C programmers to describe arbitrary data structures in a machine-independent way. Protocols such as remote procedure calls (RPC) use these routines to describe the format of the data.

xdr_sizeof returns the number of bytes required to encode data.

Routine

This routine returns the number of bytes required to encode data using the XDR filter function func, excluding potential overhead such as RPC headers or record markers. Zero is returned on error.

The information returned by xdr_sizeof might be used to select between transport protocols, to determine the buffer size for various lower levels of RPC client and server creation routines, or to allocate storage when XDR is used outside the RPC subsystem.

References

rpc(NS), xdr_admin(NS), xdr_complex(NS), xdr_create(NS), xdr_simple(NS)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005