TIP: Click on subject to list as thread! ANSI
echo: tub
to: Bob Jones
from: Bo Simonsen
date: 2003-10-06 16:23:48
subject: Sqfix problem

Hello Bob!

05 Oct 03 14:19, you wrote to me:

 BS>> Oh! I thought so, but I wasn't scure about it.

 BJ> I thought of an additional item.....  Even a packed structure might
 BJ> round up the sizeof() to be a multiple of 4 or 8 bytes....
 BJ> That would mean you would still need to specify the size via another
 BJ> means for reading and/or writing the packed structure....  I haven't
 BJ> tested this....

Yes I see that, if I understand correctly the structure is packed, but
sizeof(STRUCT) returns the size of the "unpacked" structure.

 BJ>> Wes has a define made to allow packing the structures
 BJ>> under GCC but not on other compilers where the packing isn't
 BJ>> needed.

 BS>> It's needed for use with fx. OS/2 or Win32, BTW one of
 BS>> my links told that the user.bbs from a Max/2 can't be
 BS>> readed by Max/Linux

 BJ> Ok....  I haven't tried that yet.  I will have either a conversion
 BJ> routine or that fixed before my BBS transitions from OS/2 to
 BJ> Linux.....

Okay.. I won't be a problem to write a small convertion program.

Regards,
Bo

--- GoldED+/LNX 1.1.4.7
* 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™.