by Jack Klein <jackklein@[EMAIL PROTECTED]
>
May 7, 2008 at 10:49 PM
On Thu, 08 May 2008 10:47:57 +0800, friendfish <friendfish@[EMAIL PROTECTED]
>
wrote in comp.lang.c:
> Anyone can told me about the warrning which GCC generated as following:
> "No newline at end of file"?
The C standard states that "a source file that is non-empty shall end
in a new-line character" and your source file doesn't. So add one.
Open the source file in a text editor. Move the cursor to the end of
the last line, after the last character. Press the "Enter" key on
your keyboard. Save the file.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.para****ft.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html