Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Your getline is better than mine

Reply
Thread Tools

Your getline is better than mine

 
 
Richard Harter
Guest
Posts: n/a
 
      11-29-2007

I have done an implementation of the file reading routine. The
"man page" is at http://home.tiac.net/~cri/2007/gflspec.html.
It contains links to a directory containing two source files
called getfline.c and getfline.h. The directory URL is
http://home.tiac.net/~cri_a/source_code/getfline/.

The code has been run through a test suite, but the suite was not
so extensive that I will guarantee that it is ironclad.
Corrections and suggestions are always welcome.

The routine does not check for an attempt to read the same file
at the same time from two different places. Presumably this
should be a catchable error. Incidentally I can't tell from the
standard what happens if you attempt to open a file that already
is open. (I'm looking at 7.9.5.3 and 7.9.5.4 from Plauger's "The
Standard C Library".) It's not clear to me how this should be
handled.

The license is a BSD license with an extra clause requiring that
modified versions be labeled as modified versions.


Richard Harter,
http://home.tiac.net/~cri, http://www.varinoma.com
In the fields of Hell where the grass grows high
Are the graves of dreams allowed to die
 
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
GL2 better than the XLs? Consumer grade HDs better than pro-sumer Mini DVs? dh@. DVD Video 1 08-28-2008 07:20 PM
The Nikon D3 makes everyone's life better, even mine!!! Dudley Hanks Digital Photography 98 03-16-2008 08:49 PM
Help me, a friend of mine wrote a program in C# and I wrote the sameprogram in C..His is faster than mine on the same machine...How Come ? c C Programming 43 12-15-2007 01:01 PM
my getline is better than yours Rosario C Programming 15 11-14-2007 01:09 PM
Is splint really better than lint? Is there a better tool than splint? Peter Bencsik C Programming 2 09-21-2006 10:02 PM



Advertisments