[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Communications, Volume 1


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


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.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

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.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]