Search:

Type: Posts; User: noops

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    7,270

    I did have the same problem as you probably for...

    I did have the same problem as you probably for the reason tabstop mentioned. I was reusing the same variable to add data. Alloc new memory for each piece of data that you add to the queue.
  2. Replies
    5
    Views
    7,270

    Do you need memcpy? Couldn't you just set...

    Do you need memcpy? Couldn't you just set new_node->data = item?

    I am actually working on the same thing as you right now. And that is the approach I am taking.
Results 1 to 2 of 2