Translates between C language long integers and their external representations.
#include <rpc/xdr.h>
xdr_long
( xdrs, lp)
XDR *xdrs;
long *lp;
The xdr_long filter primitive translates between C language long integers and their external representations. This primitive is characteristic of most eXternal Data Representation (XDR) library primitives and all client XDR routines.
xdrs | Points to the XDR stream handle. This parameter can be treated as an opaque handler and passed to the primitive routines. |
lp | Specifies the address of the number. |
Upon successful completion, this subroutine returns a value of 1. If unsuccessful, it returns a value of 0.
When in 64 BIT mode, if the value of the long integer can not be expressed in 32 BIT, xdr_long will return a value of 0.
This subroutine is part of Base Operating System (BOS) Runtime.
List of XDR Programming References.
eXternal Data Representation (XDR) Overview for Programming and Understanding XDR Library Filter Primitives in AIX 5L Version 5.1 Communications Programming Concepts.