| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | hexdump.c |
> skipb(fp, start); > dodump(fp, start, count); > return (EXIT_SUCCESS); ac> fseek(fp, start, SEEK_SET); ac> dodump(fp, start, count); ac> return EXIT_SUCCESS; If you seek to a location outside the range of the file, you will stay at your last file position, instead of going to the end and failing. In other words, unless you put in some error checking, the skipb() one is more robust. 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™.