-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Scott Kitterman wrote:
Daniel Taylor wrote:
This is the first canonical source I could think of:
http://dev.unicals.com/papers/c99-draft.html#6.4.4.1
The above link is to the ENTIRE C99 spec on one page.
500+ pages of html text. If you have another source it
is: C99 spec, section 6.4.4.1 (Integer Constants).
Yes, and while interesting, a language spec isn't really what I was looking
for. I was hoping for an RFC, BCP, STD, or something like that (I'd even
take ISO or IEEE...).
I understand, but the language spec is the root of this particular
can of worms, I suspect all the way back to BCPL and earlier.
To be clearer, here is the ABNF from section 3.2.2 of STD 66, which
also seems to preclude leading zeros in IPv4 addresses:
IPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet
dec-octet = DIGIT ; 0-9
/ %x31-39 DIGIT ; 10-99
/ "1" 2DIGIT ; 100-199
/ "2" %x30-34 DIGIT ; 200-249
/ "25" %x30-35 ; 250-255
Note that IPv6 is a whole different can of worms, and the standard
notation for IPv6 DOES use optional zero padding.
- --
Daniel Taylor VP Operations Vocal Laboratories, Inc.
dtaylor(_at_)vocalabs(_dot_)com http://www.vocalabs.com/
(952)941-6580x203
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC8L1Z8/QSptFdBtURAq7JAJ9/OINegTC03Sqe2vtKL14fatvOZACfYBWn
6BLFC1MLx/3u207fzBqc/2g=
=OLqF
-----END PGP SIGNATURE-----