proctor-libc 0.3.0

Safe, Rust-idiomatic equivalents of libc functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# proctor-libc

`proctor-libc` provides safe, Rust-idiomatic equivalents of functions from the C
standard library. Each port aims to preserve the corresponding libc function's
behavior for every input whose behavior libc defines, including its return value.

C types are represented consistently: `char` as `i8`, `int` as `i32`, `long` as
`i64`, `float` as `f32`, `double` as `f64`, `long double` as `f128::f128`, and
`size_t` as `usize`. Null-terminated strings are represented by `i8` slices
containing a null byte where the libc interface requires one.

Function documentation is intentionally concise because behavior follows the
corresponding libc function; it focuses on Rust-specific return values and error
handling where needed.