TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: Frank Malcolm
from: Paul Edwards
date: 1996-03-23 08:45:00
subject: hexdump.c

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)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.