VMS Help
TCPIP Services, Programming Interfaces, RPC XDR Routines, xdr_wrapstring
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Serializes and deserializes NULL-terminated strings.
Format
#include <tcpip$rpcxdr.h>
bool_t xdr_wrapstring(XDR *xdrs, char **spp);
xdrs
A pointer to an XDR stream handle created by one of the XDR
stream handle creation routines.
spp
A pointer to a pointer to a string.
A primitive that calls xdr_string(xdrs, sp, MAXUNSIGNED); where
MAXUNSIGNED is the maximum value of an unsigned integer. This
routine is useful because the ONC RPC client and server routines
pass the XDR stream handle and a single pointer as parameters
to any referenced XDR routines. The xdr_string routine, one
of the most frequently used ONC RPC primitives, requires three
parameters.
While decoding, if *sp is NULL, the necessary storage is
allocated to hold the null-terminated string and *sp is set to
point to it.
TRUE Indicates success.
FALSE Indicates failure.
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.