In the snippet you posted, no, because it wants a pointer to a struct, not the struct itself, so it probably wont even compile.
Your original code is fine it's just you've got a syntax error. You can't use *a->b because -> gets the member b from the pointer a, and so by derefencing it, you are turning a into the variable, where -> fails.
All this pointer stuff gets confusing after a while, but I think your code is correct except for those 2 lines I posted earlier, where you are mixing * with ->.
Last edited by DJBMASTER; 03/03/10 17:59.