Re: using sizeof operator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 22, 2012 at 10:17 PM, Sukrit Sangwan
<sukritsangwan@xxxxxxxxx> 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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux