[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
style question - const char *
From: |
Eric Blake |
Subject: |
style question - const char * |
Date: |
Thu, 17 Nov 2005 21:52:54 -0700 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Is there a preference for 'const char *' over 'char const *'? A quick
grep of my locally-modified gnulib repository shows 208 "char const *" vs.
793 "const char *" in the .c and .h files. The GNU Coding Standards offer
no help - http://www.gnu.org/prep/standards/standards.html#CPU-Portability
has exactly one example apiece of the two styles (one of which is gnulib's
error module). POSIX 1003.1 2004 edition XSH exclusively uses 'const
char', and I tend to prefer it as well. Should this be clarified in the
coding standards?
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDfV4m84KuGfSFAYARApM+AKCNPB0SesE3sBmOHj8ff35jy+UFQwCg1Kw4
AVaPzoAoVd5fUAfoNfI5u4s=
=26fG
-----END PGP SIGNATURE-----
- style question - const char *,
Eric Blake <=