0
How to use events in C/C++
How to work with events and listeners
2 Antworten
+ 5
C has a signal.h library that allows to handle signals. Signals are a bit like events in JavaScript, you assign a function to a signal handler that will be executed once the signal is sent. Signals are not as powerful though and are mostly used e. g. for gracefully exiting a program when the user terminates it (by sending an abort or kill signal)
https://code.sololearn.com/cAnnzfZsdLuR/?ref=app