Expand description
Collection of utilities to work with C stuff
Re-exports§
pub use args::Args;
Modules§
- args
- C style arguments wrapper
- env
- Environment variables
- locale
- Locale module
- memory
- Memory related utilities
- process
- Process sub-module
Macros§
- c_lit
- Creates C compatible string that ends with null character
- c_main
- Declares main function with C like signature, passing CLI arugments via
Args
- system
- Creates command with
c_lit
macro and pass it to system call
Functions§
- c_
str_ ⚠to_ rust - Converts C string to Rust’s, verifying it is UTF-8
- c_
str_ ⚠to_ rust_ unchecked - Converts C string to Rust’s one assuming it is UTF-8
- getenv⚠
- malloc⚠
- strlen⚠
- system⚠
Type Aliases§
- int
- Alias to C’s
int
type