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