Hint added.
[AROS.git] / workbench / c / Beep.c
blob9ec47e11112c04220dcdd0fd8445813bb2b33101
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Beep
6 Lang: English
7 */
9 /*****************************************************************************
11 NAME
12 Beep
14 FORMAT
15 Beep
17 SYNOPSIS
19 LOCATION
22 FUNCTION
23 BEEP produces a beep via Intuition DisplayBeep(NULL).
25 EXAMPLE
27 SEE ALSO
29 ******************************************************************************/
31 #include <proto/exec.h>
32 #include <dos/dos.h>
33 #include <intuition/intuition.h>
34 #include <intuition/intuitionbase.h>
35 #include <proto/intuition.h>
36 #include <intuition/screens.h>
38 const TEXT version[] = "$VER: Beep 41.2 (03.03.2011)";
40 __startup AROS_PROCH(Start, argstr, argsize, SysBase)
42 AROS_PROCFUNC_INIT
44 struct IntuitionBase *IntuitionBase;
46 IntuitionBase = (struct IntuitionBase *)OpenLibrary("intuition.library", 0);
47 if (!IntuitionBase)
48 return RETURN_FAIL;
50 DisplayBeep( NULL );
52 CloseLibrary(&IntuitionBase->LibNode);
53 return RETURN_OK;
55 AROS_PROCFUNC_EXIT