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


#1

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


#2

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

Equivalent to C’s char type.

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


#3

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