TIP: Click on subject to list as thread! ANSI
echo: net_dev
to: Johan Billing
from: Herbert Rosenau
date: 2000-02-18 22:34:22
subject: V7 nodelist on non-Intel platforms

JB> When implementing V7 nodelist support in my tosser CrashMail II,
 JB> I came up with a 
 JB> question which I couldn't find a good answer to. Which byte-order
 JB> should be used 
 JB> in V7 nodelists, the Intel byte-order or the native byte-order?

Use simply a charater stream to read/write the file. charater streams non't
notice a byte order because the would serialise aech byte so the byte order
in memory is irrelevant.

If you're a C programmer use simply fgets(), fprintf() and your external
data will be propperly formend as sequences of bytes. For compatibility to
them fread() and fwrite will be do the same on buffers.

C++ dowa with cin/cout the same for you.

--- Sqed/32 1.15/development
* Origin: home of sqed: http://www.sqed.de (2:2476/493)
SEEN-BY: 201/0 200 209 300 329 400 407 411 505 600 203/600 204/450 700 205/0
SEEN-BY: 206/0 396/1 490/21 633/267 270
@PATH: 2476/493 480 2410/201 2432/200 774/605 106/1 396/1 201/505 633/267

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