X-Git-Url: https://piware.de/gitweb/?p=learn-rust.git;a=blobdiff_plain;f=call-rust-from-c%2Fsrc%2Fmain.c;fp=call-rust-from-c%2Fsrc%2Fmain.c;h=b514433ce6fc8d680ffa67b9090ee60ed6afdb9a;hp=0000000000000000000000000000000000000000;hb=7ed2d982ac15df78e852fd5835d137881536a4ef;hpb=b74219aafd6977a99de7e52bc47f956b0b45cb01 diff --git a/call-rust-from-c/src/main.c b/call-rust-from-c/src/main.c new file mode 100644 index 0000000..b514433 --- /dev/null +++ b/call-rust-from-c/src/main.c @@ -0,0 +1,8 @@ +#include +#include "rustlib.h" + +int main() +{ + printf("The answer: %i\n", answer()); + return 0; +}