11 } *data_ptr
, data_tmp
;
24 static int fetch_count
;
26 __builtin_memset(&data_tmp
, 0x55, sizeof(data_tmp
));
27 sqlca
.sqlcode
= (++fetch_count
> 1 ? 100 : 0);
33 struct data_record
*p
;
34 int num
= num_records();
36 data_ptr
= malloc(num
* sizeof(struct data_record
));
37 __builtin_memset(data_ptr
, 0xaa, num
* sizeof(struct data_record
));
41 while (sqlca
.sqlcode
== 0) {
51 if (sizeof (int) == 2 && data_ptr
[0].dummy
!= 0x5555)
53 else if (sizeof (int) > 2 && data_ptr
[0].dummy
!= 0x55555555)