basic_lib_for_me 0.2.2

It is just a basic lib that i will use for every of my program
Documentation
use std::ffi::CString;
use std::io::stdin;

/// get input from keyboard, return String
pub fn get_input() -> String {
    let mut data = String::new();
    stdin().read_line(&mut data).expect("Unable to read line!");
    data.trim_end().to_string()
}

/// get i32 input
pub fn get_i32_input() -> i32 {
    loop {
        let data = get_input();
        match data.trim().parse() {
            Ok(num) => return num,
            Err(_) => {
                println!("Invalid Number!");
                continue;
            }
        };
    }
}

/// pause the terminal
pub fn pause() {
    println!("Press Enter Key...");
    let _ = get_input();
}

/// clear the terminal
pub fn cls() {
    unsafe {
        libc::system(CString::new("cls").unwrap_or_default().as_ptr());
    }
}

/// a macro that create String
#[macro_export]
macro_rules! str {
    ( $x:expr ) => {
        {
            String::from($x)
        }
    };
}