Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!cory.Berkeley.EDU!klatchko From: klatchko@cory.Berkeley.EDU (ron klatchko) Newsgroups: comp.lang.c Subject: Re: Max line length (was Re: programming challenge ...) Message-ID: <11005@pasteur.Berkeley.EDU> Date: 13 Mar 89 01:46:59 GMT References: <2102@jasper.UUCP> <207600017@s.cs.uiuc.edu> <9777@bloom-beacon.MIT.EDU> Sender: news@pasteur.Berkeley.EDU Reply-To: klatchko@cory.Berkeley.EDU.UUCP (ron klatchko) Organization: University of California, Berkeley Lines: 13 In article <9777@bloom-beacon.MIT.EDU> jfc@athena.mit.edu (John F Carr) writes: >>Of course, you need to delete the newline after the first line. > >What is the longest line allowed in a C program? Does the standard say? >Do present compilers care? That is implementation dependent. If your compiler attempts to read in an entire line at a time and digest it, then you're compiler would have some maximum length. If the compiler reads the the code in character by character (lex does this), then there should be no maximum length. -------------------------------------------------------------------------------- Ron Klatchko klatchko@cory.Berkeley.EDU ...!ucbvax!cory!klatchko