beep Subroutine

Purpose

Sounds the audible alarm on the terminal.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>

int beep(void);

Description

The beep subroutine alerts the user. It sounds the audible alarm on the terminal, or if that is not possible, it flashes the screen (visible bell). If neither signal is possible, nothing happens.

Return Values

The beep subroutine always returns OK.

Examples

To sound an audible alarm, enter:

beep();