Re: sizeof a struct element

2024-09-11 Thread Hal Murray via devel
Fred Wright said: > You can just use sizeof(). The only caveat is that there's no way > (AFAIK) to apply it to an element of an abstract type, so you need a > concrete instance to apply it to. But the concrete instance can even be > just a pointer, as long as it's a pointer to a complete str

Re: sizeof a struct element

2024-09-11 Thread Fred Wright via devel
On Wed, 11 Sep 2024, Hal Murray via devel wrote: I'm trying to cleanup the tangle in ntp_control.c that generates warnings. They may be actual bugs. The problem is that the man page says long while the actual size may be 32 or 64 on 32 bit Linux systems. If I knew the size, the fix would be

sizeof a struct element

2024-09-11 Thread Hal Murray via devel
I'm trying to cleanup the tangle in ntp_control.c that generates warnings. They may be actual bugs. The problem is that the man page says long while the actual size may be 32 or 64 on 32 bit Linux systems. If I knew the size, the fix would be simple. wscript has code to get the size of a type