Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
X
X
X
X
int list_same(list1,list2) list list1,list2
{ list L1,L2; L1 = list_open("SELECT * FROM staff",1000); L2 = list_open("SELECT * FROM staff",1000); printf(list_same(L1,L2)); /* 0 */ if (L1 == L2) printf("L1 == L2"); else printf("L1 != L2"); /* prints */ L1 = L2 printf(list_same(L1,L2)); /* 1 */ if (L1 == L2) printf("L1 == L2"); /* prints */ else printf("L1 != L2"); list_next(L1); printf(list_same(L1,L2)); /* 1 */ if (L1 == L2) printf("L1 == L2"); else printf("L1 != L2"); /* prints */ }