xdr_u_long Subroutine

Purpose

Translates the unsigned long integers from the C language to their external representations.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>
xdr_u_long ( xdrs,  ulp)
XDR *xdrs;
u_long *ulp;

Description

The xdr_u_long subroutine is a filter primitive that translates the unsigned long integers from the C language to their external representations.

Note: The xdr_u_long subroutine encodes or decodes a 32-bit value, irrespective of whether the application is compiled in 32-bit mode or in 64-bit mode. If a 64-bit value is passed to the xdr_u_long subroutine, the resulting high-order 32-bit values are not determined.

Parameters

Item Description
xdrs Points to the eXternal Data Representation (XDR) stream handle.
ulp Specifies the address of the unsigned long integer.

Return Values

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