[net.micro.pc] How to make PC beeps in C

shangc@azure.UUCP (Shang Chyou) (02/22/84)

Can anyone help me on how to write a C routine to make my IBM-PC
beeps. Please respond by mail. Thanks.

jph@whuxle.UUCP (02/25/84)

#R:azure:-255600:whuxle:22700017:000:16
whuxle!jph    Feb 23 13:10:00 1984

printf("%c",7);

jim@randvax.ARPA (Jim Gillogly) (02/27/84)

--------
If you're using Lattice C,

	putch(7)

will work better than the previously suggested

	printf("%c",7)

since the latter one won't happen until a newline because
of output buffering.  The "putch" is like a "putchar" except
it goes immediately.

		Jim Gillogly           I/ /
		decvax!randvax!jim     I_/
		jim@rand-unix          I