xdr_wrapstring()

The xdr_wrapstring() call translates between strings and their external representations.

Syntax

#include <rpc\rpc.h>

bool_t
xdr_wrapstring(xdrs, sp)
XDR *xdrs;
char **sp;

Parameters

xdrs

sp

Description

The xdr_wrapstring() call is the same as calling xdr_string() with a maximum size of MAXUNSIGNED. It is useful because many RPC procedures implicitly start two-parameter XDR routines, and xdr_string() is a three-parameter routine.

Return Values

The value 1 indicates success; the value 0 indicates an error.


[Back: xdr_void()]
[Next: xdrmem_create()]