Skip to content

Commit c8fb675

Browse files
committed
Add INT_MIN and INT_MAX
1 parent c473691 commit c8fb675

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ cfg_if! {
148148
pub enum FILE {}
149149
pub enum fpos_t {} // TODO: fill this out with a struct
150150

151+
pub const INT_MIN: c_int = -2147483648;
152+
pub const INT_MAX: c_int = 2147483647;
153+
151154
extern {
152155
pub fn isalnum(c: c_int) -> c_int;
153156
pub fn isalpha(c: c_int) -> c_int;

0 commit comments

Comments
 (0)