Wanted: Special Editor

David Sherman dave at lsuc.UUCP
Thu Feb 6 07:04:51 AEST 1986


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



More information about the Comp.unix mailing list