Home | Previous Page | Next Page   Creating User-Defined Routines > Developing a User-Defined Routine > Designing a UDR >

Portability

To ensure portability of your C UDR, include the following items in the design and implementation of your C UDR:

DataBlade API Data Types

The DataBlade API provides platform-independent data types, such as mi_smallint (two-byte integer), mi_integer (four-byte integer), and mi_double_precision (floating-point values). For a complete list of DataBlade API data types, see Table 4. The mitypes.h header file defines these data types.

Tip:
The mi.h header file automatically includes the milib.h header, which in turn includes the mitypes.h header file. Therefore, you do not need to explicitly include mitypes.h to use the DataBlade API data types.

To ensure maximum portability of your code, use these platform-independent data types instead of their C-language equivalents.

Data Conversion

The DataBlade API provides special functions to handle the following data conversions that a C UDR might need to perform:

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]