fn from(text: &'a str) -> CBox<str> {
        unsafe {
            let cstr = CString::new(text).unwrap();
            let ptr = libc::malloc(text.len() as size_t + 1) as *mut c_char;
            libc::strcpy(ptr, cstr.as_ptr());
            CBox::new(ptr)
        }
    }
/// Copy this text using malloc and strcpy.
Copy this text using malloc and strcpy.
Copy this text using malloc and strcpy .
fn from(text: &'a str) -> CBox<str> {
        unsafe {
            let cstr = CString::new(text).unwrap();
            let ptr = libc::malloc(text.len() as size_t + 1) as *mut c_char;
            libc::strcpy(ptr, cstr.as_ptr());
            CBox::new(ptr)
        }
    }
fn from ( text : & ' a str ) -> CBox < str > { unsafe { let cstr = CString :: new ( text ) . unwrap ( ) ; let ptr = libc :: malloc ( text . len ( ) as size_t + 1 ) as * mut c_char ; libc :: strcpy ( ptr , cstr . as_ptr ( ) ) ; CBox :: new ( ptr ) } }
Copy this text using malloc and strcpy.
Copy this text using malloc and strcpy .
text
&'a str