Function c_string::libc_free [] [src]

pub unsafe fn libc_free(ptr: *const c_char)

The deallocation function that delegates to libc::free.

Use with OwnedCString::new for strings allocated with the standard C allocation function linked as libc::malloc.

Caution

On some platforms, such as Windows, the standard C allocator used by non-Rust libraries is not necessarily the same as the one linked with the crate libc.