dinomug to Programmer Humor · 3 years agoHow we see strings Rust/Cimagemessage-square13fedilinkarrow-up154arrow-down10
arrow-up154arrow-down1imageHow we see strings Rust/Cdinomug to Programmer Humor · 3 years agomessage-square13fedilink
minus-squarepinknoiselinkfedilinkarrow-up6·edit-23 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)