Files
simple-rust-tests/__ffi/c_export/call_in_python.py
T
2020-10-17 16:07:46 +08:00

6 lines
133 B
Python

import ctypes
stringtools = ctypes.CDLL("target/debug/libstringtools.dylib")
print(stringtools.count_substrings(b"banana", b"na"))