Skip to content

string::raw::from_buf and c_char conflict #16283

Closed
@metajack

Description

@metajack

c_char is i8, so trying to use string::raw::from_buf involves this:

let cstring: *c_char = .....;
let s = string::raw::from_buf(cstring as *const i8 as *const u8);

Either c_char should switch to u8, or string::raw::from_buf should take *const i8. Right now using this is quite tedious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions