How to raise an immediate cigalarm in c

I know that I can set an alarm to β€œleave” with SIGALRM after a certain time, using alram(numberOfSeconds) , what I want to do is raise SIGALRM immediately.

Any help would be greatly appreciated.

+6
c alarm
source share
1 answer

raise(SIGALRM);

+10
source share

All Articles