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

Pieter Hintjens ph at imatix.com
Tue Jun 18 15:34:22 CEST 2013


On Tue, Jun 18, 2013 at 1:52 PM, Emeka <emekamicro at gmail.com> wrote:

> My little understanding of C language tells me that " const char" is only
> read-only. So, why do we change the of "ellipsis"

"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"

It's not the most obvious thing, and usually I don't use "const" in
declarations for this reason.

-Pieter



More information about the zeromq-dev mailing list