xdr_long Subroutine

Purpose

Translates between C language long integers and their external representations.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>

xdr_long
(
xdrs,  lp)
XDR *xdrs;
long *lp;

Description

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.

Parameters

Item Description
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.

Return Values

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.