Thread (1 message) 1 message, 1 author, 2012-01-22

using sizeof operator

From: Daniel Baluta <hidden>
Date: 2012-01-22 20:21:20

On Sun, Jan 22, 2012 at 10:17 PM, Sukrit Sangwan
[off-list ref] wrote:
I found an instance where sizeof(struct xyz) is used instead of
sizeof(variablename).
I want to ask if it would be appropriate to contact the author about the
same.
Well, this doesn't really matter, but the recommended practice is to use
sizeof(*pointer);

Please keep intact Cc's list.

thanks,
Daniel.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help