Max line length (was Re: programming challenge ...)
ron klatchko
klatchko at cory.Berkeley.EDU
Mon Mar 13 11:46:59 AEST 1989
In article <9777 at bloom-beacon.MIT.EDU> jfc at 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 at cory.Berkeley.EDU ...!ucbvax!cory!klatchko
More information about the Comp.lang.c
mailing list