509?? (Re: Max line length)
Robert Claeson
prc at maxim.ERBE.SE
Thu Mar 16 03:07:51 AEST 1989
In article <2285 at buengc.BU.EDU>, bph at buengc.BU.EDU (Blair P. Houghton) writes:
> John Carr and Doug Gwyn both quoted the pANS as requiring compilers to
> accept at least 509 chars of logical line...
>
> Huh???
On some weird os'es, the longest line that can be read from a text file
is that of a disk block minus one character. Then subtract two characters
for the line delimiter (CR-LF on most os'es). This will give you 509
characters.
--
Robert Claeson, ERBE DATA AB, P.O. Box 77, S-175 22 Jarfalla, Sweden
Tel: +46 (0)758-202 50 Fax: +46 (0)758-197 20
EUnet: rclaeson at ERBE.SE uucp: {uunet,enea}!erbe.se!rclaeson
ARPAnet: rclaeson%ERBE.SE at uunet.UU.NET BITNET: rclaeson at ERBE.SE
More information about the Comp.lang.c
mailing list