Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: 509?? (Re: Max line length) Message-ID: <13364@steinmetz.ge.com> Date: 14 Mar 89 16:02:54 GMT References: <2102@jasper.UUCP> <207600017@s.cs.uiuc.edu> <9777@bloom-beacon.MIT.EDU> <11005@pasteur.Berkeley.EDU> <648@jhereg.Jhereg.MN.ORG> <2285@buengc.BU.EDU> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 23 In article <2285@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: | Do X3J11 do their discussing ain between trips to the 7-11 to buy | lottery tickets or something? | | Did they hit the trifecta at Rosemont betting 5-0-9? (probably required | themselves to box...:-) Think about it... 512 is a power of two. If you want to keep the line length in BCD you need three bytes for that. That leaves 509 for the actual data. Identifiers are 31 characters to leave one byte for length, flags, or whatever. Note that the standard does not require that the length be kept in BCD, you could keep it in binary in two bytes and use a zero terminated string. You could even keep the length in standard metric hexadecimal, because it's implementation dependent. This answer is at least as serious as the question... -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me