ctrlc-tiny 1.0.0

A tiny crate for checking if Ctrl-C was pressed — no handlers, no AtomicBool.
Documentation
1
2
3
4
5
6
7
8
9
10
#ifndef SIGINT_H
#define SIGINT_H

#include <signal.h>

int init_sigint_handler(const char *message);
sig_atomic_t get_is_sigint_received(void);
void reset_is_sigint_received(void);

#endif