Re: K&R2 Ex 5-11 : What is it asking for?
From: CBFalconer (cbfalconer_at_yahoo.com)
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
Here is the help screen from my own version, which I have been
using for a while. Maybe it will clarify what is wanted.
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 (email@example.com) (firstname.lastname@example.org) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!