2009/5/11 RT Mistler <[email protected]>:
> Hi,
>
> I've been looking at some kernel modules trying to map an embedded
> devices resources and while going through a driver, I encountered an
> "if" test that employed "!!", example:
>
> if !!function_foo(args) {
>  ...
> }
>
> What does the "!!" do? (I'm familiar with a single "!")

Another use of !! is like this:

 Node *left, *right;
        int childCount() {
                return !!left + !!right;
        }

Regards
Martin

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to