Standard type for code pointers?
Erik Trulsson
ertr1013 at student.uu.se
Wed Apr 20 08:54:11 PDT 2005
On Wed, Apr 20, 2005 at 08:34:18AM -0700, Marcel Moolenaar wrote:
>
> On Apr 20, 2005, at 5:41 AM, Joseph Koshy wrote:
>
> >I'm looking for a standard type that is defined to have at least
> >as many bits as needed to hold a pointer to code. What would
> >that be?
>
> intptr_t is probably what you want.
Except that intptr_t need only be large enough to hold an object
pointer. This is not necessarily enough to hold a function pointer.
The only standard types that are guaranteed to be able to hold a
function pointer are other function pointers.
--
<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se
More information about the freebsd-standards
mailing list