xdr_getpos Macro

Purpose

Returns an unsigned integer that describes the current position in the data stream.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>

u_int xdr_getpos ( xdrs)
XDR *xdrs;

Description

The xdr_getpos macro invokes the get-position routine associated with the eXternal Data Representation (XDR) stream pointed to by the xdrs parameter. This routine returns an unsigned integer that describes the current position in the data stream.

Parameters

Item Description
xdrs Points to the XDR stream handle.

Return Values

This macro returns an unsigned integer describing the current position in the stream. In some XDR streams, it returns a value of -1, even though the value has no meaning.