We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90993ee commit edb350aCopy full SHA for edb350a
src/ffi.md
@@ -281,6 +281,10 @@ We'll create a C file to call the `hello_from_rust` function and compile it by `
281
C file should look like:
282
283
```c
284
+// Explicitly declare to avoid error like this:
285
+// implicit declaration of function 'hello_from_rust' is invalid in C99 ...
286
+extern void hello_from_rust();
287
+
288
int main(void) {
289
hello_from_rust();
290
return 0;
0 commit comments