Pass UT_hash_handle to a function

23 views
Skip to first unread message

Akash Phalak

unread,
Feb 7, 2017, 12:46:18 AM2/7/17
to uthash
Dear Arthur,

I am using uthash in my project i am using General macros and i want to pass a UT_hash_handle to a function, In that function i want to use General macros and pass that handle to it. So how can i do it, i have tried but face lots of error.

Regards,
Akash Phalak.

Arthur O'Dwyer

unread,
Feb 8, 2017, 6:32:45 PM2/8/17
to uth...@googlegroups.com
Hi Akash,

In general you should be passing around pointers to your own struct which contains a UT_hash_handle field (traditionally named hh), not passing around pointers to UT_hash_handles themselves. But if that doesn't help you, feel free to post some of the code you're trying to compile and someone will probably take a look and help you out.
The documentation has plenty of examples, btw.

HTH,
Arthur


--
You received this message because you are subscribed to the Google Groups "uthash" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uthash+unsubscribe@googlegroups.com.
To post to this group, send email to uth...@googlegroups.com.
Visit this group at https://groups.google.com/group/uthash.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages