Remove print_message_from_rust

This commit is contained in:
Greg Shuflin 2021-02-27 21:27:55 -08:00
parent b64211f27c
commit 61a142d570
2 changed files with 0 additions and 6 deletions

1
main.c
View File

@ -47,7 +47,6 @@ void usage() {
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
print_message_from_rust();
int read_flag = 0, write_flag = 0, config_flag = 0, csv_flag = 0; int read_flag = 0, write_flag = 0, config_flag = 0, csv_flag = 0;
int list_flag = 0, verify_flag = 0; int list_flag = 0, verify_flag = 0;

View File

@ -3,11 +3,6 @@ use libc::c_char;
const COPYRIGHT: &'static str = "Copyright (C) 2018 Serge Vakulenko KK6ABQ"; const COPYRIGHT: &'static str = "Copyright (C) 2018 Serge Vakulenko KK6ABQ";
#[no_mangle]
pub extern "C" fn print_message_from_rust() {
println!("Calling from Rust!");
}
#[no_mangle] #[no_mangle]
pub extern "C" fn print_usage(version_ptr: *const c_char) { pub extern "C" fn print_usage(version_ptr: *const c_char) {
let version: String = unsafe { CStr::from_ptr(version_ptr) }.to_string_lossy().to_string(); let version: String = unsafe { CStr::from_ptr(version_ptr) }.to_string_lossy().to_string();