| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Maximus at UNIX |
Hello andrew!
Jun 02 17:25 03, andrew clarke wrote to Bo Simonsen:
BS>> (subject, from, to, ftsc_data and so on). So i borrowed some code
BS>> from the smapi.
ac> This was probably due to the compiler using structure alignment
ac> on word boundaries (not type size) in which case you should be
ac> able to use:
ac> #pragma pack(1)
ac> typedef struct _xmsg
ac> {
ac> /* ... */
ac> }
ac> XMSG;
ac> #pragma pack()
Hmm.. i saw the same routine in XMSGAPI/SMAPI, i guess we need it. There is
problems about reading _the whole_ structure with read().
ac> To align structures on byte boundaries. This isn't portable to
ac> all compilers, but I think it works with all versions of GNU C.
ac> Maybe you did this already. ;-)
I compared the structure in MsgAPI with the one in SMAPI/XMSGAPI and they
were correct.
Regards,
Bo
--- Msged/LNX 6.1.2
* Origin: Downlink BBS * Roennede, Dk * telnet geekworld.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™.