[zeromq-dev] possible bug in zframe.c ?

Bjorn Reese breese at mail1.stofanet.dk
Tue Jun 18 15:48:22 CEST 2013


On 06/18/2013 03:34 PM, Pieter Hintjens wrote:

> "const char *x" => "x is a pointer to characters which are constant"
> "char const *x" => "x is a pointer that is constant, to characters
> (which may be changed)"
> "const char const *x" => "x is a pointer to constant characters and is
> itself constant"

Only the first is correct. See:

   http://c-faq.com/ansi/constptrconst.html
   http://www.parashift.com/c%2B%2B-faq-lite/const-ptr-vs-ptr-const.html




More information about the zeromq-dev mailing list