#include <rpc/xdr.h> bool_t xdr_float(XDR *xdrs, float *fp);
The xdr_float() function is a filter primitive that translates between C-language floating-point numbers (normalized single floating-point numbers) and their external representations.
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_float() is used:
#include <stdio.h> #include <xdr.h> typedef struct vector { float x,y,z; } vector ; bool xdr_vector(XDR *xdrs, vector *p_vector) { if(!xdr_float(xdrs,&(p_vector->x))) return FALSE; if(!xdr_float(xdrs,&(p_vector->y))) return FALSE; return xdr_float(xdrs,&(p_vector->z)); }
Top | Remote Procedure Call (RPC) APIs | APIs by category |