informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_fix_smallint()

The mi_fix_smallint() function converts the specified 2-byte integer to or from the byte order of the client computer.

Syntax

Usage

The mi_fix_smallint() function is useful in send and receive support functions for opaque data types when the opaque type contains mi_smallint components that need to be converted to and from the client byte order.

For maximum portability, this function accepts and returns fully promoted mi_integer values instead of mi_smallint values. Arguments and return values might therefore require casting.

Return Values

mi_unsigned_integer is the value in the desired byte order.
MI_ERROR indicates that the function was not successful.

Related Topics

See the descriptions of the following functions: mi_fix_integer(), mi_get_bytes(), mi_get_double_precision(), mi_get_integer(), mi_get_smallint(), mi_put_bytes(), mi_put_double_precision(), mi_put_integer(), and mi_put_smallint().


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved