return count;
}
+/*-----------------------------------------------------------------*/
+/* indexSet - returns the i'th item in set */
+/*-----------------------------------------------------------------*/
+void *indexSet(set * s, int index)
+{
+ set *loop=s;
+
+ while(loop && index) {
+ index--;
+ loop = loop->next;
+ }
+
+ return (loop->item);
+}
+
+
/*-----------------------------------------------------------------*/
/* reverseSet - reverse the order of the items of a set */
/*-----------------------------------------------------------------*/