From: Steve Graegert <graegerts@gmail.com>
To: jywang <jywang@cnic.cn>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: what is the char ~ mean
Date: Tue, 8 Nov 2005 06:42:29 +0100 [thread overview]
Message-ID: <6a00c8d50511072142x736ef017kfdf4d70f7070809c@mail.gmail.com> (raw)
In-Reply-To: <003801c5e40f$c11cce20$060ae29f@javaboy>
On 11/8/05, jywang <jywang@cnic.cn> wrote:
> in linux source code, i find this line,
> ~tcp_v4_check(...).
>
> what is the character ~ mean.
It means 'one's complement of'. Look at the example to understand its usage:
int main(void) {
/* 4 = 0000 0000 0000 0100 */
unsigned int value = 4;
/* 4294967291 = 1111 1111 1111 1011 */
value = ~value;
}
In your case, this would mean: "create the one's complement of the
return value of tcp_v4_check".
\Steve
next prev parent reply other threads:[~2005-11-08 5:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-08 2:54 what is the char ~ mean jywang
2005-11-08 5:42 ` Steve Graegert [this message]
2005-11-08 15:37 ` linuxdevelop linux
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=6a00c8d50511072142x736ef017kfdf4d70f7070809c@mail.gmail.com \
--to=graegerts@gmail.com \
--cc=jywang@cnic.cn \
--cc=linux-c-programming@vger.kernel.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).