TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Dave Kelly
from: William McBrine
date: 1999-01-02 23:03:28
subject: Re: help needed

-=> Dave Kelly wrote to All <=-

 DK> As I figure it this structure comsumes 42 bytes.
 DK> 
 DK> On my system 'u_int32' is unsigned long or 4 bytes.

And what's the size of a (procid *)? I'm assuming it's 4 bytes, making the
whole structure 48, by my count. (If it's only 2 bytes for the pointer,
then the struct is 44 bytes.) How do you get 42?

 DK> Where/how would be the best way to flesh out this structure to make
 DK> it end on an 8 byte boundry?

If you had to, you could always add a final element like:

 char junk[6];

But a better solution would be to see if your compiler itself supports
alignment (it probably does).

... 666.00000000000000 - number of the high precision beast
--- MultiMail/Linux v0.22
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 634/397 635/506 728 639/252
SEEN-BY: 670/218
@PATH: 106/2000 396/1 633/260 635/506 728 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™.