CTRL(X) in ANSI standard

Henry Spencer henry at utzoo.UUCP
Tue May 7 06:33:29 AEST 1985


> Here's a silly though:  since '\xFC' has been added to ANSI C for hex
> characters, how about '\^G' for control characters, ala ICON?  I never
> did like the CTRL macro.

As has been said before, the right way to do this is:

	#define	BEL	'\007'

or something along those lines.  The character is "BEL", numbered 7 decimal
in the ASCII code; control-G is just the way you type it on many (but not
necessarily all) terminals.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.lang.c mailing list