ASA Programming Guide
Embedded SQL Programming
Library function reference
unsigned long sqlda_string_length( SQLDA *sqlda, int varno );
Returns the length of the C string (type DT_STRING) that would be required to hold the variable sqlda->sqlvar[varno] (no matter what its type is).