l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:02

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Re: [vox] Large File Support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Re: [vox] Large File Support

On Tue, Mar 27, 2001 at 01:18:20PM -0800, Peter Jay Salzman wrote:
> it occurs to me that fsetpos and fseekpos aren't solutions, either.  simply
> because of all the code that's already out there that use fseek and ftell.

They're only solutions if you actually use them.  That's like saying
that penecillin isn't a solution, simply because of all the people who
don't use it.  It is your responsibility, as a programmer, to write
good tools, using what is given you.  During the time of K&R C,
fseek() and ftell() were the only thing going - you can't blame them
for using it.  But now, programmers are without excuse - if you expect
your program to work with files > 2G, you must use the better,
ANSI-provided solution (as opposed to K&R-provided).  In exactly the
same way that, with functions such as fgets() available, you are
without any excuse to use gets().

Certainly, fseek() and ftell() are to blame for the problem - but
rather than blame an innocent bystander, why not place the blame where
it belongs - K&R*?

* actually, they're not entirely to blame either, but I'm not about to
go into it.

> peter (who is now going on to do something useful today).


LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!