![]() |
|
When you install INFORMIX-ESQL/C, the installation script stores the header files in the $INFORMIXDIR/incl/esql directory on a UNIX operating system and in the %INFORMIXDIR%\incl\esql directory in a Windows environment.
Figure 1-17 shows the header files provided with the ESQL/C product.
Figure 1-17
Figure 1-18 on page 1-40 shows the ESQL/C header files specific to Dynamic Server with UD Option.
Figure 1-19 shows the ESQL/C header files specific to Windows environments.
ESQL/C provides the sqlproto.h header file to declare function prototypes for all ESQL/C library functions. These function prototypes are required in an ESQL/C source file that you compile with an ANSI C compiler. By default, the esql command processor does not include function-prototype declarations. Having the processor include the ANSI-compliant function prototypes for the ESQL/C functions prevents an ANSI C compiler from generating warnings.
Warning: Although you can use an ANSI C compiler, the ESQL/C preprocessor does not fully support ANSI C, so you might not be able to preprocess all programs that follow the ANSI C standards.
Because the sqlproto.h file does not contain any ESQL/C statements, you can include this file in either of the following ways:
The ESQL/C preprocessor automatically includes the following ESQL/C header files in your program:
Warning: Although you can now use an ANSI C compiler, the ESQL/C preprocessor does not fully support ANSI C, so you might not be able to preprocess all programs that follow the ANSI C standards.
To include any of the other header files in your ESQL/C program, you must use the include preprocessor directive. However, you only need to include an ESQL/C header file if your program refers to the structures or the definitions that the header file defines. For example, if your program accesses datetime data, you must include the datetime.h header file, as follows:
Make sure to terminate the line of code with a semicolon. Some additional examples follow:
Tip: You do not have to enter the .h file extension for an ESQL/C header file; the esql preprocessor assumes a .h extension.
For information on the include directive, see The include Directive.