example c program that does "beep"

Joe Marcus Clarke marcus at marcuscom.com
Fri Dec 25 19:02:27 UTC 2009


On Fri, 2009-12-25 at 18:58 +0000, Anton Shterenlikht wrote:
> How can I get a beep from c?
> I looked at curses and syscons.c, but
> still not clear.
> Could somebody send me an example.
> I'd be soooooo grateful.

#include <stdio.h>

int
main(int argc, char **argv) {
        printf("%c", 7);
        return(0);
}

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20091225/aa05b7c4/attachment.pgp


More information about the freebsd-questions mailing list