Article View: comp.std.c
Article #4182Re: Maximum length of line of C code
From: Stephen Baynes
Date: Thu, 05 Oct 1995 08:05
Date: Thu, 05 Oct 1995 08:05
25 lines
1719 bytes
1719 bytes
Colin Plumb (colin@nyx10.cs.du.edu) wrote: : In article <44qg8v$s1m@ixnews2.ix.netcom.com>, : Richard Berthold <berthold@ix.netcom.com> wrote: : > Is there a limit to the number of characters in a physical line of C : > code which a "standard" compiler must be able to read (ie all lines : > must be less than 80 characters etc)? : > If there is no standard limit, does anyone know of any current : > compilers with small limits ie < 512 ? : The standard only guarantees 509 characters will be acceptable for *logical* : lines, *after* backslash-continuedd lines have been spliced together. : I don't think your technique is going to work in general. So I can have an physical input line of more than 509 characters so long as it contains enough trigraphs that colapse down in phase 1 to give a logical line not exceeding 509 characters. Is the new-line character counted as part of the line? I can't see it stated explicitly but the implication is that it is and comes at the end of the line. -- Stephen Baynes baynes@mulsoc2.serigate.philips.nl Philips Semiconductors Ltd Southampton My views are my own. United Kingdom
Technical Details
Message-ID:
<DFyuHB.Brv@ukpsshp1.serigate.philips.nl>Path:
arc1-ca.pugleaf.net!phcoms4.seri.philips.nl!panther!baynesReferences:
<44qg8v$s1m@ixnews2.ix.netcom.com> <44t7ht$ms2@nyx10.cs.du.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!phcoms4.seri.philips.nl!panther!baynes From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes) Subject: Re: Maximum length of line of C code Sender: news@ukpsshp1.serigate.philips.nl (account for localnews) Message-ID: <DFyuHB.Brv@ukpsshp1.serigate.philips.nl> Date: Thu, 5 Oct 1995 08:05:35 GMT References: <44qg8v$s1m@ixnews2.ix.netcom.com> <44t7ht$ms2@nyx10.cs.du.edu> Organization: Philips Semiconductors, Southampton, UK X-Newsreader: TIN [version 1.2 PL2]