Libc::c_char vs std:: os::raw::c_char

what is the difference between libc::c_char and std::os::raw::c_char
and which one is better to use ?

There is no difference (read the doc :wink: )

Equivalent to Cā€™s char type.

Btw. please edit your title and replace ; by :, thanks

1 Like

I recommend using std::os::raw::*, because this way you avoid adding libc dependency.

1 Like