Declaration of GRAPHIC type host variables in single-graphic and null-terminated graphic forms in C and C++ embedded SQL applications
Single and null-terminated
GRAPHIC type host variables that you declare in your embedded C or
C++ application are treated as if they were declared in a C or C++
program. You can use host variables to exchange data between the embedded
application and the database manager.
Following is the syntax for declaring a graphic host variable using the single-graphic form and the null-terminated graphic form.
Graphic host variable considerations:
- The single-graphic form declares a fixed-length graphic string host variable of length 1 with SQLTYPE of 468 or 469.
- value is an initializer. A wide-character string literal (L-literal) must be used if the WCHARTYPE CONVERT precompiler option is used.
- length can be any valid constant expression, and its value after evaluation must be greater than or equal to 1, and not greater than the maximum length of VARGRAPHIC, which is 16 336.
- Null-terminated graphic strings are handled differently, depending on the value of the standards level precompile option setting.
