1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00
2018-01-07 02:38:46 +08:00

10 lines
165 B
Python

from ctypes import *
libso = CDLL("./say-hello.so")
SayHello = libso.SayHello
SayHello.argtypes = [c_char_p]
SayHello.restype = None
SayHello(c_char_p(b"hello"))