🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4163

Maximum length of line of C code

#4163
From: Richard Berthold
Date: Tue, 03 Oct 1995 05:04
18 lines
1166 bytes
I have written a program which outputs C code and recently ran into a
problem under OpenVMS related to the length of lines of code. It is not
difficult to split the output into multiple lines with a \ at the end
of the multiple lines but I have some questions about how sophisticated
an algorithm must be used.

Any help with the following types of questions would be appreciated.

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 ?
Must all compilers support \ as a line continuation character? Is it
always a continuation even if preceded by another \?

Thanks,
Dick Berthold
Technical Details
Message-ID: <44qg8v$s1m@ixnews2.ix.netcom.com>
Path: arc1-ca.pugleaf.net!ix.netcom.com!netnews

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ix.netcom.com!netnews
From: berthold@ix.netcom.com (Richard Berthold)
Newsgroups: comp.std.c
Subject: Maximum length of line of C code
Date: 3 Oct 1995 05:04:31 GMT
Organization: Netcom
Message-ID: <44qg8v$s1m@ixnews2.ix.netcom.com>
NNTP-Posting-Host: ix-esc-ca2-19.ix.netcom.com
X-NETCOM-Date: Mon Oct 02 10:04:31 PM PDT 1995