From: crayben@yahoo.cn (Burke)
To: kernelnewbies@lists.kernelnewbies.org
Subject: simple question about the function memcmp in kernel
Date: Mon, 08 Apr 2013 11:52:23 +0800 [thread overview]
Message-ID: <51623EF7.8020808@yahoo.cn> (raw)
In-Reply-To: <122907.1365388178@turing-police.cc.vt.edu>
? 2013-4-8 10:29, Valdis.Kletnieks at vt.edu ??:
> 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. :)
Dear Max,Valdis:
I got it, many thanks for your kindly reply.
next prev parent reply other threads:[~2013-04-08 3:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-05 8:50 Interrupt Handler of Ethernet Device Robert Clove
2013-04-05 12:06 ` Rami Rosen
2013-04-05 12:11 ` Robert Clove
2013-04-05 12:24 ` Anuz Pratap Singh Tomar
2013-04-07 2:52 ` ishare
2013-04-07 15:22 ` Rami Rosen
2013-04-08 0:57 ` simple question about the function memcmp in kernel Ben Wu
2013-04-08 1:33 ` Valdis.Kletnieks at vt.edu
2013-04-08 1:56 ` Max Filippov
2013-04-08 2:29 ` Valdis.Kletnieks at vt.edu
2013-04-08 3:52 ` Burke [this message]
2013-04-08 5:42 ` Interrupt Handler of Ethernet Device Robert Clove
2013-04-08 6:41 ` Rami Rosen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51623EF7.8020808@yahoo.cn \
--to=crayben@yahoo.cn \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).