Re: K&R2 Ex 5-11 : What is it asking for?

From: CBFalconer (cbfalconer_at_yahoo.com)
Date: 03/11/05


Date: Fri, 11 Mar 2005 09:51:36 GMT

Deniz Bahar wrote:
>
> My english is not top notch and I am trying to understand what K&R2
> Ex 5-11 is asking for (pg 118).
>
> It says: Modify the programs entab and detab (which I completed
> from chapter 1 and have on hand) to accept a list of tab stops as
> arguments. Use the default tab settings if there are no arguments.
>
> I am having difficulty understanding the question (not asking for
> answer to it). Any help would be helpful (thus the common root
> "help").

Here is the help screen from my own version, which I have been
using for a while. Maybe it will clarify what is wanted.

[1] c:\c\hshftst>detab
DETAB copyright (c) 1989 by C.B. Falconer. Ver 1.0

usage: DETAB [tablist] <infile >outfile
If tablist is omitted a tab interval of 8 is assumed
If tablist has only one number, then that is the tab interval
If tablist contains multiple numbers, separated by spaces,
  then they are assumed to be the tab points. The leftmost
  column is numbered 0.
If tablist is a single 0, then tabs are not expanded
Backspaces in a line shut off tab expansion until cr

Any isolated lf's are converted into cr/lf pairs (Unix files)
Omitting the "<infile" causes this help screen

-- 
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


Relevant Pages

  • Re: Supress page numbers in TOC
    ... button which will cause the Modify Style dialog to appear, ... leader radio button and replace the existing tab setting with one that will ... Please post any further questions or followup to the newsgroups for the ...
    (microsoft.public.word.newusers)
  • Re: Change default email address
    ... It seems I may have to modify the recipient policy as outlined here: ... Creating a new SMTP email address for the user in the "Email addresses" tab, then selecting "Set as primary. ...
    (microsoft.public.exchange.admin)
  • Re: How can I keep the ruler on screen?
    ... I had the same problem with the ruler until it was finally made clear to me ... You can change the default tab spacing, though the tab settings are in terms ... Word 2002 and above you can modify the default margins of one or more table ...
    (microsoft.public.word.docmanagement)
  • Re: Tab leader in TOC
    ... In the Index and Tables dialog, click on the Modify button on the Table of ... Contents tab and in the Style dialog that appears, select the heading level ... > decide per level if youwant to have tab leader or not? ...
    (microsoft.public.word.pagelayout)
  • Re: Tab leader in TOC
    ... If you don't see a tab stop in the dialog box, ... Then update the TOC. ... This is how I'm trying to modify the tab leader ... Then I go to Format, ...
    (microsoft.public.word.pagelayout)