How do I make my program beep.
Jay A. Konigsberg
jak at sactoh0.UUCP
Tue Jun 12 17:56:05 AEST 1990
The following was extracted from the current release of Gnu Awk 2.11.1.
I have only had a short amount of time to examin it, but it looks like
it is worthwhile to post.
X/* Figure out what '\a' really is. */
X#ifdef __STDC__
X#define BELL '\a' /* sure makes life easy, don't it? */
X#else
X# if 'z' - 'a' == 25 /* ascii */
X# if 'a' != 97 /* machine is dumb enough to use mark parity */
X# define BELL '\207'
X# else
X# define BELL '\07'
X# endif
X# else
X# define BELL '\057'
X# endif
X#endif
-------------------------------------------------------------
Jay @ SAC-UNIX, Sacramento, Ca. UUCP=...pacbell!sactoh0!jak
If something is worth doing, its worth doing correctly.
More information about the Comp.lang.c
mailing list