What's the correct way to interface with a intptr_t?

Alex sascha.orlov at gmail.com
Sat Apr 6 20:13:03 UTC 2019


On Saturday, 6 April 2019 at 19:31:15 UTC, Robert M. Münch wrote:
> I have a C interface that uses a parameter of type intptr_t. 
> Wondering if size_t is the correct D equivalent?

I suppose, ptrdiff_t is.

https://dlang.org/spec/type.html#ptrdiff_t
https://dlang.org/spec/portability.html#32_to_64bit



More information about the Digitalmars-d-learn mailing list