allegro 0.0.5

Allegro 5 core library Rust wrapper
// Copyright (c) 2014 by SiegeLord
//
// All rights reserved. Distributed under ZLib. For full terms see the file LICENSE.

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()
}