Function fuzzyhash::compare_strings_raw
[−]
[src]
#[no_mangle]pub extern "C" fn compare_strings_raw(
first: *const i8,
second: *const i8
) -> u32
FFI Compatible fuzzy hash comparisons.
Arguments
first
- a C style fuzzy hash stringsecond
- a C style fuzzy hash string
Example
use fuzzyhash::{compare_strings_raw}; use std::ffi::CString; let first = CString::new("this is our test data!").unwrap(); let second = CString::new("this is my test data!").unwrap(); println!("Fuzzy Hash: {}", compare_strings_raw(first.into_raw(), second.into_raw()));