Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: Bug/Gross InEfficiency in HeathField's fgetline program

Reply
Thread Tools

Re: Bug/Gross InEfficiency in HeathField's fgetline program

 
 
Dik T. Winter
Guest
Posts: n/a
 
      11-07-2007
In article <(E-Mail Removed)> http://www.velocityreviews.com/forums/(E-Mail Removed)lid writes:
> Charlie Gordon said:
>
> <snip>
>
> > Actually, I don't know why I am arguing with you on this issue: I can't
> > think of any compelling reason to even include this function in the
> > Standard.

>
> Neither can I


I can. Because it was in K&R C. And it was in K&R C to manipulate
file names in Unix V6 (maximal 14 characters, not necessarily null
terminated, but if shorter null filled).
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
 
Reply With Quote
 
 
 
 
Richard
Guest
Posts: n/a
 
      11-07-2007
"Dik T. Winter" <(E-Mail Removed)> writes:

> In article <(E-Mail Removed)> (E-Mail Removed)lid writes:
> > Charlie Gordon said:
> >
> > <snip>
> >
> > > Actually, I don't know why I am arguing with you on this issue: I can't
> > > think of any compelling reason to even include this function in the
> > > Standard.

> >
> > Neither can I

>
> I can. Because it was in K&R C. And it was in K&R C to manipulate
> file names in Unix V6 (maximal 14 characters, not necessarily null
> terminated, but if shorter null filled).


I can too. To insert sub strings into pre-formatted string buffers.
 
Reply With Quote
 
 
 
 
Charlie Gordon
Guest
Posts: n/a
 
      11-07-2007
"Dik T. Winter" <(E-Mail Removed)> a écrit dans le message de news:
(E-Mail Removed)...
> In article <(E-Mail Removed)> (E-Mail Removed)lid
> writes:
> > Charlie Gordon said:
> >
> > <snip>
> >
> > > Actually, I don't know why I am arguing with you on this issue: I
> > > can't
> > > think of any compelling reason to even include this function in the
> > > Standard.

> >
> > Neither can I

>
> I can. Because it was in K&R C. And it was in K&R C to manipulate
> file names in Unix V6 (maximal 14 characters, not necessarily null
> terminated, but if shorter null filled).


You are refering to the directory structure used in Unix V6, and some other
obscure accounting files. That hardly qualifies as compelling for inclusion
in c89. Such use was completely specific to the underlying operating
system, just like the system calls. strdup was also present in K&R C, as an
example from the book, but was not included in the Standard.

--
Chqrlie.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Designing fgetline - a perspective Richard Harter C Programming 48 11-25-2007 11:40 PM
Bug/Gross InEfficiency in HeathField's fgetline program Antoninus Twink C Programming 436 11-13-2007 08:52 PM
Program inefficiency? hall.jeff@gmail.com Python 17 10-01-2007 04:48 PM
RE: Program inefficiency? Michael.Coll-Barth@VerizonWireless.com Python 6 10-01-2007 06:22 AM
Segfaulting when trying to create custom 'fgetline' function Jeff Rodriguez C Programming 4 11-17-2003 08:31 AM



Advertisments