Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Item* listAt (ArrayList *list, int pos) {
  2.         Node *no = list->firstNode;
  3.         int count = 1;
  4.         while (no) {
  5.         if (count + last >= pos)
  6.             return no->items[pos-count];
  7.         else
  8.             count += last + 1;
  9.         }
  10.         return NULL;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement