C: Extrapolating type from void pointer

Posted by Yktula on Stack Overflow See other posts from Stack Overflow or by Yktula
Published on 2010-04-09T02:56:20Z Indexed on 2010/04/09 3:03 UTC
Read the original article Hit count: 365

Filed under:
|
|

Say a function takes a void pointer as an argument, like so: int func(void *p);
How can we determine or guess the type of what p is pointing to?

© Stack Overflow or respective owner

Related posts about c

    Related posts about void-pointers