:: Re: [DNG] semantic of sizeof operat…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: John Morris
Ημερομηνία:  
Προς: Hendrik Boom, dng
Αντικείμενο: Re: [DNG] semantic of sizeof operator in C (was: simple-netaid from scratch)
On Wed, 2019-06-12 at 08:40 -0400, Hendrik Boom wrote:
>
> More precisely, sizeof(foo) is the spacing of consecutive elements of
> type foo.


Most importantly for most people, malloc(sizeof(foo)*n) must not cause
unexpected things like a kaboom.