use libc::c_char;
use std::ffi::c_str_to_bytes;
#[allow(non_camel_case_types)]
pub type c_bool = u8;
pub trait Flag
{
fn zero() -> Self;
}
#[allow(dead_code)]
pub unsafe fn from_c_str(c_str: *const c_char) -> String
{
String::from_utf8_lossy(c_str_to_bytes(&(c_str as *const _))).into_owned()
}