dinomug to Programmer Humor • 2 years agoHow we see strings Rust/Cimagemessage-square13arrow-up153arrow-down10
arrow-up153arrow-down1imageHow we see strings Rust/Cdinomug to Programmer Humor • 2 years agomessage-square13
minus-square@pinknoiselink6•edit-22 years agoFun fact: the C standard neither defines the size nor the signedness of char. Also the rust side is missing Vec<char> and maybe Chars<'_> and I’m sure you can make up more representations :D Also there is at least also wchar_t* on the C side because you can’t (always) cast between the two. (I mean you can, but you shouldn’t)
Fun fact: the C standard neither defines the size nor the signedness of
char
.Also the rust side is missing
Vec<char>
and maybeChars<'_>
and I’m sure you can make up more representations :DAlso there is at least also
wchar_t*
on the C side because you can’t (always) cast between the two. (I mean you can, but you shouldn’t)