Interfacing with c and platform dependent sizes
simendsjo
simen.endsjo at pandavre.com
Fri Feb 25 16:28:02 PST 2011
C is not my strong side, so I'm having some problems wrapping some code.
I found a couple of sources on this:
1) http://www.digitalmars.com/d/2.0/htomodule.html
2) http://www.digitalmars.com/d/2.0/interfaceToC.html
1)
C's long is the same as D's int.
long long is long
2)
C 32bit's long long is D's long, C 64 bits long is D's long.
So.. A long in C is the same as the platform size? And long long doesn't
exist in 64 bit?
More information about the Digitalmars-d-learn
mailing list