Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP Path: utzoo!utcs!mnetor!lsuc!dave From: dave@lsuc.UUCP (David Sherman) Newsgroups: net.unix Subject: Re: Wanted: Special Editor Message-ID: <1096@lsuc.UUCP> Date: Wed, 5-Feb-86 16:04:51 EST Article-I.D.: lsuc.1096 Posted: Wed Feb 5 16:04:51 1986 Date-Received: Wed, 5-Feb-86 21:09:10 EST References: <2323@burdvax.UUCP> Reply-To: dave@lsuc.UUCP (David Sherman) Organization: Law Society of Upper Canada, Toronto Lines: 19 Summary: two-char sequences and simple C program If there is some character which you know will not appear in your text (say ` for example), you could prepend it to each character whose 8th bit you want turned on. E.g. ab`cdef`ghi would mean that the c and g would have the 8th bit on. It would then be trivial to write a C program which would int c; while((c = getchar()) != EOF) { if(c == '`') c = (getchar() | 0200); putchar(c); } Dave Sherman The Law Society of Upper Canada Toronto -- { ihnp4!utzoo pesnta utcs hcr decvax!utcsri } !lsuc!dave