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

9
c_export/call_in_c.c Normal file
View File

@@ -0,0 +1,9 @@
#include <stdint.h>
#include <stdio.h>
int32_t count_substrings(const char* value, const char* substr);
int main() {
printf("%d\n", count_substrings("banana", "na"));
return 0;
}