0

How to use events in C/C++

How to work with events and listeners

20th Jul 2019, 6:13 PM
Oliver Valiente Oliva
Oliver Valiente Oliva - avatar
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
20th Jul 2019, 7:21 PM
Aaron Eberhardt
Aaron Eberhardt - avatar