_ptr and _srcptr types

Niels Möller nisse at lysator.liu.se
Sun May 20 20:07:36 UTC 2018


Vincent Lefevre <vincent at vinc17.net> writes:

> No, pointers to different types may have different representations,
> and in particular, different sizes.

Hmm. I was aware that *function* pointers may use different
representation and size than data pointers.

But not that a data pointer can use different representation than void*.
If that really is the case, most occurences of NULL or (void*)0 in the
argument list in the call of a varargs function would be undefined
behavior, right?

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.


More information about the gmp-devel mailing list