Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!cbmvax!vu-vlsi!devon!paul From: paul@devon.UUCP (Paul Sutcliffe Jr.) Newsgroups: comp.lang.c Subject: Re: Why all this fuss about CTRL(X) ?? Message-ID: <184@devon.UUCP> Date: Sat, 6-Dec-86 23:27:18 EST Article-I.D.: devon.184 Posted: Sat Dec 6 23:27:18 1986 Date-Received: Tue, 9-Dec-86 02:51:40 EST References: <7136@elsie.UUCP> <779@valid.UUCP> <5396@brl-smoke.ARPA> <1955@watdragon.UUCP> Organization: Devon Computer Services, Allentown, PA Lines: 28 In article <1955@watdragon.UUCP>, jmsellens@watdragon.UUCP (John M. Sellens) writes: > 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. That's fine if you know ahead of time what control characters you want to play with. However, if I want to find the ``control'' value of a variable, as in: foo() { char c, cc; ... cc = CTRL(c); ... } then your method, although good for what it was intended, won't do. -Paul -- Paul Sutcliffe, Jr. UUCP: {seismo,ihnp4,allegra,rutgers}!cbmvax!devon!paul Devon Computer Services COMPUSERVE: 76176,502 Allentown, Penna. Sarek: "Any message for your mother, Spock?" +1 215 398 3776 Spock: "Yes. Tell her 'I feel fine.'"