Crates.io | stringer |
lib.rs | stringer |
version | 0.1.6 |
source | src |
created_at | 2016-05-29 04:00:37.830912 |
updated_at | 2016-06-10 04:23:49.121746 |
description | An easy way to turn an Unsafe *const c_char into a Rust String type and return a pointer. |
homepage | https://github.com/selfup/stringer |
repository | https://github.com/selfup/stringer |
max_upload_size | |
id | 5219 |
size | 845 |
An easy way to turn an unsafe *const c_char
into a Rust String type and return a pointer for FFI.
turn_into_pointer(st: String) -> CString
Takes a Rust String type and returns a CString.
make_string(s1: *const c_char) -> String
Takes a *const c_char
and returns a Rust String
type.
Cargo.toml
[dependencies]
stringer = "*"
In the file you need the functions
extern crate stringer;
use stringer::*;