[pacman-dev] alpm_list_last

Xavier shiningxc at gmail.com
Mon Apr 21 05:52:21 EDT 2008

On Mon, Apr 21, 2008 at 11:23 AM, Sebastian Nowicki <sebnow at gmail.com> wrote:
>  It makes sense now. I didn't realise that it was a circular list
>  (might be worth mentioning).

Ah right, I should have just said that. Maybe I didn't because I
wasn't sure if it's really a typical circular list.
It's a double linked list, which is circular when going backward with
->prev pointer, but not when going forward with ->next pointer.
Because for walking through a list, we always do something like :
for(i = dblist; i; i = i->next) {

More information about the pacman-dev mailing list