Skip to content

Instantly share code, notes, and snippets.

@fearofcode
Created September 8, 2011 05:12
Show Gist options
  • Save fearofcode/1202677 to your computer and use it in GitHub Desktop.
Save fearofcode/1202677 to your computer and use it in GitHub Desktop.
invoking native libraries from Python via ctypes (Windows)
from ctypes import *
msvcrt = cdll.msvcrt
message_string = "Hello world\n"
msvcrt.printf("Testing: %s", message_string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment