Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Item* listAt (ArrayList *list, int pos) {
- Node *no = list->firstNode;
- int count = 1;
- while (no) {
- if (count + last >= pos)
- return no->items[pos-count];
- else
- count += last + 1;
- }
- return NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement