| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Big endian machines |
-=> Pascal Schmidt wrote to Bo Simonsen <=- PS> Hi Bo! :-) Hi Pascal, PS>> What is an sword supposed to be? I'd stick to standard names. BS> signed words afair. Anyhow it has the same lenght as a word have, BS> which is 2 bytes.. PS> This is called uint16_t by the C standard's . ;) Yes but in the dos world it's beeing called a word :) PS> That's the most useful definition for such a type since it PS> is guaranteed to work no matter what the word size of the PS> underlying machine is. Yes, that's right. BS> I should be little endian, fidonet packages should be send in little BS> endian, so I guess I just run a htonl on the words? PS> htonl will swap the bytes on a little endian machine, and PS> not swap them on a big endian machine. Network byte order PS> is big endian. Yes the man page says so :) PS> It looks like you will need to code your own routines that PS> behave the other way round. Yes that might be more portable too, if I need to do extra things on some other platforms. Bo ... MultiMail, the new multi-platform, multi-format offline reader! ___ MultiMail/Linux v0.46 --- Maximus/UNIX 3.03b* Origin: The Night Express - Roennede, Dk (2:236/100) SEEN-BY: 633/267 270 @PATH: 236/100 237/9 20/11 106/1 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™.