]> Harvie.CZ GIT Repositories and Mirrors - mirrors/Programs.git/commitdiff
python script to call c library master
authorTomas Mudrunka <tomas.mudrunka@gmail.com>
Thu, 5 Feb 2026 12:47:08 +0000 (13:47 +0100)
committerTomas Mudrunka <tomas.mudrunka@gmail.com>
Thu, 5 Feb 2026 12:47:08 +0000 (13:47 +0100)
python/pydll.py [new file with mode: 0755]

diff --git a/python/pydll.py b/python/pydll.py
new file mode 100755 (executable)
index 0000000..0ea7525
--- /dev/null
@@ -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')
+
This page took 0.198853 seconds and 4 git commands to generate.