When an application is handling error and informational messages inline, the Client-Library routine ct_diag can return message information in a SQLCA, SQLCODE, or SQLSTATE structure.
For a discussion of Client-Library message handling, see Chapter 4, “Handling Errors and Messages.”
For a description of the SQLCA, SQLCODE, and SQLSTATE structures, see the “SQLCA Structure,” “SQLCODE Structure,” and “SQLSTATE Structure” topics pages in the Open Client Client-Library/C Reference Manual.