aboutsummaryrefslogtreecommitdiffstats
path: root/beep.c
diff options
context:
space:
mode:
Diffstat (limited to 'beep.c')
-rw-r--r--beep.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/beep.c b/beep.c
new file mode 100644
index 0000000..d108355
--- /dev/null
+++ b/beep.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+main () {
+ int i = 1;
+ while ((getchar() != 27) && (i != 50)) {
+ printf("\a");
+ i++;
+ }
+}