Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!rutgers!njin!princeton!cs!samadams.princeton.edu From: tr@samadams.princeton.edu (Tom Reingold) Newsgroups: comp.lang.c Subject: setting tab stops Message-ID: <1037@rossignol.Princeton.EDU> Date: 12 Jul 90 21:03:14 GMT Sender: news@cs.Princeton.EDU Organization: Princeton University Lines: 14 This question is not relevant to C, but I saw a nice algorithm, and I think I saw it in comp.lang.c. Someone posted a very terse way of calculating how many spaces to move given an input of tabs. I think it used the modulo operator and some bitwise operators. It was far too terse and elegant for me to think of. Can someone express what I am thinking of? The assumption is that the terminal tabs at every eighth position. -- Tom Reingold tr@samadams.princeton.edu rutgers!princeton!samadams!tr 201-577-5814 "Brew strength depends upon the amount of coffee used." -Black&Decker