Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #10064

Re: Is a blank at the end of a C file a better style than a newline at the end of the file or is it better to place none?

From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c
Subject Re: Is a blank at the end of a C file a better style than a newline at the end of the file or is it better to place none?
Date 2011-09-09 17:05 -0400
Organization A noiseless patient Spider
Message-ID <4E6A7F8E.6030901@verizon.net> (permalink)
References <j4dtug$k3k$1@speranza.aioe.org>

Show all headers | View raw


On 09/09/2011 04:46 PM, Jimmy wrote:
> Hello everyone!

You should always put your question in the body of the message. The
subject line should only be a summary (and it should be a shorter
summary than this one is.

> As the subject says. The reason for my question is that emacs always 
> suggest me to put a newline at the end of  the C file if I forget to do 
> it. Why?

Because there are systems where the absence of such a newline will cause
your program to not be processed properly. The C standard has been
written to allow such systems to be fully conforming.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Is a blank at the end of a C file a better style than a newline at the end of the file or is it better to place none? Jimmy <nospam@trash.invalid> - 2011-09-09 20:46 +0000
  Re: Is a blank at the end of a C file a better style than a newline at the end of the file or is it better to place none? James Kuyper <jameskuyper@verizon.net> - 2011-09-09 17:05 -0400
  Re: Is a blank at the end of a C file a better style than a newline at the end of the file or is it better to place none? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-09-09 16:13 -0600
  Re: Is a blank at the end of a C file a better style than a newline at the end of the file or is it better to place none? "J. J. Farrell" <jjf@bcs.org.uk> - 2011-09-09 23:36 +0100

csiph-web