| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Big endian machines |
Hi Bo! :-) BS> Could someone please give me a advice of what I should keep in mind, BS> then I won't to write Endian-less software? Try to keep all data that passes to different hosts or is stored on disk in a defined byteorder, for example by using htonl() and ntohl() for 32 bit integers. Then, when receiving over a network or loading data from disk, convert to the host byteorder for further processing. Any integer quantity bigger than 1 byte is a cause for concern. Ciao Pascal --- Msged/LNX 6.1.1* Origin: Past, present, future - all are one in Yog-Sothoth. (1:153/401.2) SEEN-BY: 633/267 270 @PATH: 153/401 307 140/1 106/2000 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™.