Re: K&R2 Ex 5-11 : What is it asking for?
From: CBFalconer (cbfalconer_at_yahoo.com)
Date: 03/11/05
- Next message: Mark Piffer: "How to correctly read 6.2.5p26?"
- Previous message: Jens.Toerring_at_physik.fu-berlin.de: "Re: <OT>Re: C sockets<OT>"
- In reply to: Deniz Bahar: "K&R2 Ex 5-11 : What is it asking for?"
- Next in thread: Deniz Bahar: "Re: K&R2 Ex 5-11 : What is it asking for?"
- Reply: Deniz Bahar: "Re: K&R2 Ex 5-11 : What is it asking for?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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!
- Next message: Mark Piffer: "How to correctly read 6.2.5p26?"
- Previous message: Jens.Toerring_at_physik.fu-berlin.de: "Re: <OT>Re: C sockets<OT>"
- In reply to: Deniz Bahar: "K&R2 Ex 5-11 : What is it asking for?"
- Next in thread: Deniz Bahar: "Re: K&R2 Ex 5-11 : What is it asking for?"
- Reply: Deniz Bahar: "Re: K&R2 Ex 5-11 : What is it asking for?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|