ASA Programming Guide
Embedded SQL Programming
Library function reference
SQLDA *alloc_sqlda( unsigned numvar );
Allocates a SQLDA with descriptors for numvar variables. The sqln field of the SQLDA is initialized to numvar. Space is allocated for the indicator variables, the indicator pointers are set to point to this space, and the indicator value is initialized to zero. A null pointer is returned if memory cannot be allocated. It is recommended that you use this function instead of alloc_sqlda_noind function.