add c_export

This commit is contained in:
2020-01-30 21:03:38 +08:00
parent 9b6409e134
commit ce78aa2a93
6 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import ctypes
stringtools = ctypes.CDLL("target/debug/libstringtools.dylib")
print(stringtools.count_substrings(b"banana", b"na"))