Re: Why is the kfree() argument const?

From: Chen Gang F T
Date: Sun Jan 13 2013 - 20:44:57 EST


ä 2013å01æ14æ 01:41, Guenter Roeck åé:
> Maybe the confusion arises from the somewhat lax use of the term "const
> pointer", and the csomewhat confusing way of defining variable attributes in C.
> Strictly speaking,
> const char *name;
> which is identical to
> char const *name;
> is not a const pointer, it is a pointer to a constant (string in this case).
> A "const pointer", or "constant pointer to an object", would be
> char * const name;

Maybe.

:-)

--
Chen Gang

Flying Transformer
begin:vcard
fn:Chen Gang
n:;Chen Gang
version:2.1
end:vcard