[pacman-dev] alpm_list_count gives 1 on an list created by alpm_list_new
solsTiCe d'Hiver
solstice.dhiver at gmail.com
Sat Feb 23 13:30:17 EST 2008
hi.
i am just using my free time to code with alpm and alpm_list. nothing to be
published yet (or ever ?)
today i just noticed that
a list created with alpm_list_new has a number of element of 1 as
alpm_list_count reports it:
#include <stdlib.h>
#include <stdio.h>
#include <alpm_list.h>
int main(void) {
alpm_list_t *l;
l = alpm_list_new();
printf("count=%d\n",alpm_list_count(l));
return(0);
}
$ ./test
count=1
shining wanted me to post here about that.
that's done !
More information about the pacman-dev
mailing list