Thanks Jan,yeah, works like a charm

On 19 February 2011 02:35, Jan Engelhardt <jengelh@medozas.de> wrote:
On Friday 2011-02-18 20:22, Soham Das wrote:
>
>758 struct HXmap_trav *trav = HXmap_travinit(AssetMap);
>        struct HXmap_node *nodeptr;
>        while ((nodeptr = HXmap_traverse(trav)) != NULL)
>
>         printf("KEY %s DATA %p\n", nodeptr->skey,nodeptr->data);
>
>Jan, when I compile this code, gcc returns the following messages: (Please
>bear, I hope I am not annoying you) The number 758 shown is the line number,
>it has nothing to do with the code
>
>V2.c:758: error: too few arguments to function ‘HXmap_travinit’

HXmap_travinit(assetmap, NULL);

The 2nd argument is to specify a starting location, if any.

>V2.c:760: warning: assignment discards qualifiers from pointer target type

You need 'const struct HXmap_node *nodeptr'.