DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home
Contents
Index
Master Index
New Book
mi_fix_smallint()
The
mi_fix_smallint()
function converts the specified value to or from the client byte ordering.
Syntax
mi_unsigned_integer mi_fix_smallint (
val
)
mi_unsigned_integer val;
val
is the
smallint
value to reorder.
Valid in Client Application?
Valid in Server Routine?
No
Yes
Usage
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.
The
mi_fix_smallint()
function is useful for implementing send and receive functions for user data types when
smallint
components need to be converted to and from the client order.
Return Values
On success, returns the value in the desired byte ordering.
Related Topics
For additional information, 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()
.
DataBlade API Programmer's Manual
, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.