asm_book/python/test.py
2023-01-25 22:10:50 -06:00

5 lines
102 B
Python

from ctypes import *
so_file = "./my_square.so"
my_funcs = CDLL(so_file)
print(my_funcs.square(10))