-----BEGIN PGP SIGNED MESSAGE-----
Scott Kitterman wrote:
Daniel Taylor wrote:
This is the first canonical source I could think of:
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 184.108.40.206 (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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----