Armin Rigo committed 372ff49

Document intptr_t

Comments (0)

Files changed (1)


     >>> int(x)
+To cast a pointer to an int, cast it to ``intptr_t``, which is defined
+by C to be a large enough integer type::
+    >>> int(ffi.cast("intptr_t", pointer_cdata))
+    135812708
 The initializer given as the optional second argument to ````
 can be mostly anything that you would use as an initializer for C code,
 with lists or tuples instead of using the C syntax ``{ .., .., .. }``.