Skip to content

Commit 8022757

Browse files
committed
Added a c_char implementation
1 parent f7a4a7e commit 8022757

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/types.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ use core::fmt;
44
pub type c_int = i32;
55
pub type c_uchar = u8;
66
pub type c_uint = u32;
7+
8+
/// This might not match C's `c_char` exactly.
9+
/// The way we use it makes it fine either way but this type shouldn't be used outside of the library.
710
pub type c_char = i8;
811

912
/// This is an exact copy of https://doc.rust-lang.org/core/ffi/enum.c_void.html

0 commit comments

Comments
 (0)