Standard type for code pointers?

Jens Schweikhardt schweikh at
Wed Apr 20 06:12:25 PDT 2005

On Wed, Apr 20, 2005 at 12:41:17PM +0000, 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?

Any function pointer. All pointers to functions are
assignment-compatible, but when dereferenced must call a function of the
declared type, otherwise the behavior is undefined.


Jens Schweikhardt
SIGSIG -- signature too long (core dumped)

More information about the freebsd-standards mailing list