alarm(3f)

Name
alarm - executes a subroutine after a specified time

Syntax
integer alarm, remaining, time
external alarm, proc
remaining = alarm ( time, proc )

Description
The alarm function causes the subroutine specified by proc to be called after time seconds. If time is zero, the alarm is turned off and no routine is called.

Restrictions
The alarm and sleep functions interact. If sleep is called after alarm, the alarm process is never called. The signal SIGALRM occurs at the lesser of the remaining alarm time or sleep time.

Return Values
The value returned is the time remaining on the last alarm.

Files
libU77.a

See Also
alarm(3), signal(3f), sleep(3f)