Open joshring opened 1 month ago
Let's say you have foo.c
with:
int foo_add(int x, int y) {
int sum = 0;
sum = x + y;
return sum;
}
If you have a project then add:
{
...
"c-sources":["foo.c"]
...
}
Now in your code, add:
extern int foo_add(int x, int y);
Now you can use it.
Want a tutorial to create a simple C3 library and use it