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

Hi, Paul.

PE> FM> AAMOI why do you get to "start" by reading bytes
rather than setting
PE> the
PE> FM> file pointer?

PE> I can't remember.  It may have been laziness, it may have been
PE> that that support was added after I had already written that
PE> bit (I think this was the case), I can't remember.

PE> FM? Does not C have that capability, or isn't it part of your
PE> FM> "standard"?

PE> It is part of the standard.  It could be done that way.

Good. But then I'm surprised that you didn't. In pseudocode...

set Start to the arg
if Start is less than 0 set it to 0
if Start is greater than the filesize set it to the filesize
seek to Start

Regards, FIM.

 * * I'm a hero with coward's legs.
@EOT:

---
* Origin: Pedants Inc. (3:711/934.24)
SEEN-BY: 711/809 934 712/610

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™.