#include <rpc/xdr.h> bool_t xdr_double_char(XDR *xdrs, char_double_t *cp);
The xdr_double_char() function is a filter primitive that translates between C-language 2-byte characters and their external representation.
Note: Encoded characters are not packed and occupy 2 bytes each. For strings of characters, consider using the xdr_string() API.
No authorization is required.
TRUE (1) | Successful |
FALSE (0) | Unsuccessful |
None.
Message ID | Error Message Text |
---|---|
CPE3418 E | Possible APAR condition or hardware failure. |
CPF3CF2 E | Error(s) occurred during running of &1 API. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
See Code disclaimer information for information pertaining to code examples.
The following example shows how xdr_double_char() is used:
#include <stdio.h> #include <xdr.h> typedef struct grades { char_double_t math; /* Each grade is 'A'..'D' */ char_double_t literature; char_double_t geography; char_double_t computers; } grades ; bool xdr_grades(XDR *xdrs, grades *p_grades) { if(!xdr_double_char(xdrs,&(p_grades->math))) return FALSE; if(!xdr_double_char(xdrs, &(p_grades->literature))) return FALSE; if(!xdr_double_char(xdrs,&(p_grades->geography))) return FALSE; return xdr_double_char(xdrs, &(p_grades->computers)); }
Top | Remote Procedure Call (RPC) APIs | APIs by category |