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


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