Skip to content

Commit 7283116

Browse files
committed
ffi: explicitly declare hello_from_rust for C99
1 parent 90993ee commit 7283116

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ffi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ We'll create a C file to call the `hello_from_rust` function and compile it by `
281281
C file should look like:
282282

283283
```c
284+
extern void hello_from_rust();
285+
284286
int main(void) {
285287
hello_from_rust();
286288
return 0;

0 commit comments

Comments
 (0)