AC> PE>> ** HEXDUMP.C - Dump a file.
AC> > AAMOI why do you get to "start" by reading bytes
rather than setting
AC> > the file pointer? Does not C have that capability, or isn't it part of
AC> > your "standard"?
AC> Normally fseek would be used to set the file pointer. Paul?
FM> That's what I would have thought. Check the requested start against
FM> the file size, then seek to it. But knowing how obsessed Paul is with
FM> standards I thought maybe that function wasn't available in 'standard'
FM> C, otherwise why the fuck wouldn't you use it.
Most of my programs are written with my use in mind. When I actually
need a feature personally, then I go and implement it. In this case,
I've never needed to start reading from a position that wasn't the
start (not that I can remember anyway). Certainly not enough to make
it worth my while to rewrite. BFN. Paul.
@EOT:
---
* Origin: X (3:711/934.9)
|