By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,604 Members | 1,620 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,604 IT Pros & Developers. It's quick & easy.

FAQ - How do I declare that a CTypes function returns void?

P: n/a
Now at we have:

FAQ: How do I declare that CTypes function returns void?

A: c_void = None is not doc'ed, but is suggested by:
<class 'ctypes.c_void_p'>
Remembering c_void = c_int from K&R C often works, but if you say a
restype is c_int, then doctest's of that call will print an int, yuck.
If you say the restype is None, then those doctest's work: they print

Hope this helps,

Oct 25 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.