xdr_char()
Format
#include <rpc.h>
bool_t
xdr_char(xdrs, cp)
XDR *xdrs;
char *cp;
Parameters
- xdrs
- Specifies the pointer to an XDR stream.
- cp
- Specifies the pointer to the C character.
Usage
The xdr_char() call is a filter that
translates between C characters and their external representations.
Notes:
- Encoded characters are not packed, and they occupy 4 bytes each.
- xdr_string and xdr_text_char() are the only supported routines that convert ASCII to EBCDIC. The xdr_char routine does not support conversion.
Return codes
The value 1 indicates success; the value 0 indicates an error.
Context
- clnt_broadcast()
- clnt_call()
- clnt_freeres()
- pmap_rmtcall()
- registerrpc()
- svc_freeargs()
- svc_getargs()
- svc_sendreply()
- xdr_bytes()
- xdr_opaque()xdr_opaque()
- xdr_string()