From: Tomas Mudrunka Date: Thu, 5 Feb 2026 12:47:08 +0000 (+0100) Subject: python script to call c library X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=mirrors%2FPrograms.git python script to call c library --- diff --git a/python/pydll.py b/python/pydll.py new file mode 100755 index 0000000..0ea7525 --- /dev/null +++ b/python/pydll.py @@ -0,0 +1,7 @@ +#!/bin/env python + +import ctypes +from ctypes.util import find_library +libc = ctypes.CDLL(find_library("libc")) +libc.printf(b"TEST: %d %s\n", 1234, b'mujstring') +