Skip to content

Instantly share code, notes, and snippets.

@smarnach
Created July 1, 2012 23:33
Show Gist options
  • Save smarnach/3030016 to your computer and use it in GitHub Desktop.
Save smarnach/3030016 to your computer and use it in GitHub Desktop.
>>> import ctypes
>>> buffer = (ctypes.c_char * 5)(*"abcde")
>>> ctypes.cast(buffer, ctypes.c_char_p)
c_char_p(3073075392)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment