Remove print_message_from_rust
This commit is contained in:
parent
b64211f27c
commit
61a142d570
1
main.c
1
main.c
@ -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;
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user