Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!watnot!watdragon!jmsellens From: jmsellens@watdragon.UUCP Newsgroups: comp.lang.c Subject: Why all this fuss about CTRL(X) ?? Message-ID: <1955@watdragon.UUCP> Date: Thu, 4-Dec-86 18:12:20 EST Article-I.D.: watdrago.1955 Posted: Thu Dec 4 18:12:20 1986 Date-Received: Fri, 5-Dec-86 04:15:53 EST References: <7136@elsie.UUCP> <779@valid.UUCP> <5396@brl-smoke.ARPA> <103@decvax.UUCP> <1375@hoptoad.uucp> <3721@utcsri.UUCP> Reply-To: jmsellens@watdragon.UUCP (John M. Sellens) Organization: U of Waterloo, Ontario Lines: 10 There seems to have been a long and somewhat futile discussion about a macro to give control characters. Some say use "CTRL(X)", some say "CTRL('X')". Here's a wonderful way, that is guaranteed to be portable, easy to type, and easy to understand. Make a file called ctrl.h with lines like #define CTRLA '\001' in it (should take mere seconds). Put #include "ctrl.h" in your C source files and use CTRLA. No fuss, no muss. Easy to understand. Portable. And it even works.