GSList



Hi,

Sorry:-)

I have a GSList list which points to gfloats. I can add them to it fine, but
I can't recover the values!

This is actually giving me GCC warnings:

"warning: dereferencing `void *' pointer
void value not ignored as it ought to be"

on the "xcurrent=(gfloat) *xptr;" line.

When I do this....

  gfloat xcurrent=0;
  gpointer xptr;
  for (j=0; j < g_slist_length(xlist); j++)
  {
    xptr=g_slist_nth_data(xlist, j);
    xcurrent=(gfloat) *xptr;
    // do things with xcurrent
  }

HELP!!!

Rich



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]