Re: simple question about the function memcmp in kernel

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

 



On Mon, 08 Apr 2013 05:56:29 +0400, Max Filippov said:

> const is the the object they point to, not the pointers themselves
> (that would be
> void * const cs).
>
> memcmp compares bytes at which cs and ct point, but these are void pointers,
> and the expression res = *cs - *ct is thus meaningless.

Max is right, and I'm obviously under-caffienated or something. :)

Attachment: pgpWyt52gysQg.pgp
Description: PGP signature

_______________________________________________
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