Home | Previous Page | Next Page   Programming DataBlade Module Routines in C > Editing Routines in udr.c >

Most User-Defined Routines

BladeSmith generates only minimal code for most routines you create with the Routine wizard.

The Generated Code

BladeSmith generates only templates for most user-defined routines.

The generated routine declares the routine, its return type, and arguments. In addition to the arguments you specified when creating the routine, these functions also have an MI_FPARAM argument. Only generated routines that allow null values have code that uses the MI_FPARAM argument. The generated code in these routines uses MI_FPARAM to set the return value of the routine to NULL.

Completing the Code

To complete the code for most user-defined routines, you must:

For more information on programming routines, see the IBM Informix: DataBlade API Programmer's Guide.

Examples

The following example DataBlade modules have user-defined routines:

The Mercury DataBlade module exercise in the tutorial provides examples of cast support functions.

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