這個檔案我們放在 lib/hello.c 。 然後我們要在Rust 的程式中呼叫: use std::{ffi::CString, os::raw::c_char}; extern "C" { // 宣告一個外部的函式,傳入一個C ...
確定! 回上一頁