Data-type alignment library functions
The following
Informix® ESQL/C library functions
provide machine-independent size and alignment information for different
data types and help you work with null database values.
Function name | Description | See |
---|---|---|
risnull() | Checks whether a C variable is null | The risnull() function |
rsetnull() | Sets a C variable to null | The rsetnull() function |
rtypalign() | Aligns data on correct type boundaries | The rtypalign() function |
rtypmsize() | Gives the byte size of SQL data types | The rtypmsize() function |
rtypname() | Returns the name of a specified SQL data type | The rtypname() function |
rtypwidth() | Returns the minimum number of characters that a character data type needs to avoid truncation | The rtypwidth() function |
When you compile your Informix® ESQL/C program with the esql command, esql calls on the linker to link these functions to your program.