xdr_char Subroutine

Purpose

Translates between C language characters and their external representations.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>

xdr_char ( xdrs,  cp)
XDR *xdrs;
char *cp;

Description

The xdr_char subroutine is a filter primitive that translates between C language characters and their external representations.

Note: Encoded characters are not packed and occupy 4 bytes each. For arrays of characters, the programmer should consider using the xdr_bytes, xdr_opaque, or xdr_string routine.

Parameters

Item Description
xdrs Points to the eXternal Data Representation (XDR) stream handle.
cp Points to the character.