xdr_enum Subroutine

Purpose

Translates between a C language enumeration (enum) and its external representation.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>

xdr_enum ( xdrs,  ep)
XDR *xdrs;
enum_t *ep;

Description

The xdr_enum subroutine is a filter primitive that translates between a C language enumeration (enum) and its external representation.

Parameters

Item Description
xdrs Points to the eXternal Data Representation (XDR) stream handle.
ep Specifies the address of the enumeration data.

Return Values

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