better_cstr 0.1.0

A better macro to work with C strings
Documentation

Better CStr Macro

Currently requires Nightly toolchain

Are you tired of writing .as_ptr() after all your C-string literals?

Simply use the c! macro:

use better_cstr::c;
use std::ffi::{c_char, CStr};

fn main() {
    let ptr: *const c_char = c!("Hello World");
    unsafe {
        println!("{:?}", CStr::from_ptr(ptr));
    }
}