Skip to content

Instantly share code, notes, and snippets.

@kirtivr
Created August 31, 2017 17:08
Show Gist options
  • Save kirtivr/bccb3bddd30fbb49b4a5ba25d1c2e942 to your computer and use it in GitHub Desktop.
Save kirtivr/bccb3bddd30fbb49b4a5ba25d1c2e942 to your computer and use it in GitHub Desktop.
Ctypes specify argtypes
printf.argtypes = [c_char_p, c_int, c_double]
printf("%s %d %f",...) works
printf("%d %d %d",...) does not work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment