title: What is the use of intptr_t?
body: <p>I know it is an integer type that can be cast to/from pointer without loss of data, but why would I ever want to do this? What advantage does having an integer type have over <code>void*</code> for holding the pointer and <code>THE_REAL_TYPE*</code> for pointer arithmetic?</p>
  <p><strong>EDIT</strong><br />
  The question marked as &quot;already been asked&quot; doesn't answer this. The question there is if using <code>intptr_t</code> as a general replacement for <code>void*</code> is a good idea, and the answers there seem to be &quot;don't use intptr_t&quot;, so my question is still valid: What would be a good use case for <code>intptr_t</code>?</p>