Skip to content

Commit

Permalink
ffi: explicitly declare hello_from_rust for C99 (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
mqy authored Feb 25, 2022
1 parent 90993ee commit f6d6126
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ We'll create a C file to call the `hello_from_rust` function and compile it by `
C file should look like:

```c
extern void hello_from_rust();

int main(void) {
hello_from_rust();
return 0;
Expand Down

0 comments on commit f6d6126

Please sign in to comment.