VMS Help  —  TCPIP Services, Programming Interfaces, RPC XDR Routines, xdr_wrapstring
    Serializes and deserializes NULL-terminated strings.
    Format
      #include  <tcpip$rpcxdr.h>
      bool_t  xdr_wrapstring(XDR *xdrs, char **spp);

1  –  Arguments

 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.

2  –  Description

    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.

3  –  Return Values

    TRUE               Indicates success.
    FALSE              Indicates failure.
Close Help