The mi_fix_integer() function
The mi_fix_integer() function converts the specified 4-byte integer to or from the byte order of the client computer.
Syntax
mi_unsigned_integer mi_fix_integer(val)
mi_unsigned_integer val;
- val
- The 4-byte integer value on which to fix the byte order.
Valid in client LIBMI application? | Valid in user-defined routine? |
---|---|
No | Yes |
Usage
The mi_fix_integer() function is useful in send and receive support functions for an opaque data type when the opaque-type structure contains an mi_integer component that needs to be converted to and from the client byte order.
Return values
- An mi_unsigned_integer value
- The value in the desired byte order.
- MI_ERROR
- The function was not successful.