home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / flistfrontend / src / alarm.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-04  |  597 b   |  29 lines

  1. #ifndef NO_IDENT
  2. static char *Id = "$Id: alarm.c,v 1.6 1995/06/04 17:08:44 tom Exp $";
  3. #endif
  4.  
  5. /*
  6.  * Title:    alarm.c
  7.  * Author:    Thomas E. Dickey
  8.  * Created:    10 Sep 1984
  9.  * Last update:    10 Sep 1984
  10.  *
  11.  * Function:    Use VAX/VMS run-time routine to make an audible tone (BELL)
  12.  *        on the user's terminal.  This is used rather than 'putchar'
  13.  *        because we wish to avoid using the VMS-C run-time support.
  14.  */
  15.  
  16. #include    <descrip.h>
  17.  
  18. #include    "crt.h"
  19.  
  20. extern    void    lib$put_screen(struct dsc$descriptor_s *p);
  21.  
  22. void
  23. sound_alarm (void)
  24. {
  25.     static $DESCRIPTOR(DSC_bell,"\007");
  26.  
  27.     lib$put_screen (&DSC_bell);
  28. }
  29.