Re: [PATCH] apr_getopt_long interface update and interleaving support
From: Branko Èibej <brane_at_xbc.nu>
Date: 2000-11-25 13:24:51 CET
Karl Fogel wrote:
> I confess I don't understand the nuance of these `const' usages.
There's a neat trick to reading C type definitions -- do it right from
const char *const *blah
you read it as "blah is a pointer to a constant pointer to a character
char *argv[]
becomes "argv is an array (yep, binds stronger than dereference) of
Things become clearer now. The other catch is that "const" acts on the
It also becomes clear why "argv" isn't declared a "const char**" --
(Yes, I've never been able to understand how C, a complex and downright
-- Brane �ibej home: <brane_at_xbc.nu> http://www.xbc.nu/brane/ work: <branko.cibej_at_hermes.si> http://www.hermes-softlab.com/ ACM: <brane_at_acm.org> http://www.acm.org/Received on Sat Oct 21 14:36:15 2006 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.