Compaq Fortran for Tru64 UNIX Alpha Systems V5.4

alarm (3f)


Syntax

  integer*4 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.

See Also

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