Crate ctrlc_tiny

Crate ctrlc_tiny 

Source

Functions§

init_ctrlc
Initializes the SIGINT (Ctrl-C) signal handler.
init_ctrlc_with_print
Initializes the SIGINT (Ctrl-C) signal handler with a custom message.
is_ctrlc_received
Checks whether Ctrl-C (SIGINT) has been received.
reset_ctrlc_received
Resets the internal Ctrl-C received flag to false.