ESQL/C: Using $struct with null fields
Posted in 1998
Randy Galbraith — — source: Informix-list mailing list archive (1991-1998)
Is there any problems with doing this? $struct tagFOO_TABLE { long field1; string field2[20]; } FOO_TABLE; $struct tagNULL_FOO_TABLE { int field1; int field2; } nullFOO_TABLE; ... later on in the code ... $fetch cursor_id into $FOO_TABLE:nullFOO_TABLE; I'm very new to ESQL/C and this is the first time I've tried to using a C structure to hold null indicators. It appears to work, but I'm wondering if there is any caveats I should be aware of. Basically I'm looking for someone to give my a warm fuzzy feeling about doing this :-) Thanks in advance. - Randy Galbraith Bulk mailers please note: Spam/UCE is not welcome at my address.