Lesson 39 of 50
rustForeign Function Interface (FFI)
20 minutes
Course progress78%
Foreign Function Interface (FFI)
Rust can call C functions via extern "C" blocks and #[link].
/* hello.c */
#include <stdio.h>
void hello_from_c() {
printf(\