ArrayListType is_in_list(ArrayListType *L,int val) { int i; int position = 0; ArrayListType T; T.length = 0; T.list[position] = L->list[position]; for(i=0 ; ilength; i++) { if(T.list[i] == val) { T.length++; return T; } T.length++; } T.length = -1; return T; }