From mboxrd@z Thu Jan 1 00:00:00 1970 From: crayben@yahoo.cn (Burke) Date: Mon, 08 Apr 2013 11:52:23 +0800 Subject: simple question about the function memcmp in kernel In-Reply-To: <122907.1365388178@turing-police.cc.vt.edu> References: <1365382621.98269.YahooMailClassic@web92101.mail.cnh.yahoo.com> <120584.1365384817@turing-police.cc.vt.edu> <122907.1365388178@turing-police.cc.vt.edu> Message-ID: <51623EF7.8020808@yahoo.cn> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org ? 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.