The exutils.c file contains utility routines that are used by all other Client-Library sample programs. It demonstrates how an application can hide some implementation details of Client-Library from a higher-level program.
For more information about these routines, see the leading comments in the sample source file.
The wide_util.c file contains these generic routines that are used by the wide_* sample programs:
The init_db routine allocates the context and initializes the library. It also installs the callback routines and is called at the beginning of several sample programs.
The cleanup_db routine closes the connection to the server and cleans up the context structure. This function is called at the end of the wide_curupd.c and wide_dynamic.c sample programs.
The connect_db routine connects to the server, then sets the appropriate user name and password.
The handle_returns routine processes the return result type.
The fetch_n_print routine fetches the bound data into a host variable.