home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / cdactual / demobin / share / program / C / ACTLIB10.ZIP / TOOLS.ZIP / BEEP.C next >
Encoding:
C/C++ Source or Header  |  1993-01-14  |  353 b   |  29 lines

  1. /*  Copyright (C) 1993   Marc Stern  (internet: stern@mble.philips.be)  */
  2.  
  3. #include <conio.h>
  4. #include <dos.h>
  5. #include "tools.h"
  6.  
  7.  
  8. /***
  9.  *
  10.  *  Function beep :   Emit a beep.
  11.  *
  12.  ***/
  13.  
  14. void beep(void)
  15. {
  16.     sound(1000);
  17.     delay(50);
  18.     nosound();
  19. }
  20.  
  21.  
  22.  
  23. void buzzer(void)
  24. {
  25.     sound(50);
  26.     delay(150);
  27.     nosound();
  28. }
  29.