Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
August 24, 2019
Menu
 Home
 Logout
 Discussions
 Forums
 Members List
 IRC chat
 Tools
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 URL-decoder
 Sql Char Encoder
 Affiliates
 y3dips ITsec
 Md5 Cracker
 User Manuals
 AlbumNow
 Content
 Content
 Sections
 FAQ
 Top
 Info
 Feedback
 Recommend Us
 Search
 Journal
 Your Account



User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9145

People Online:
Visitors: 184
Members: 0
Total: 184
PacketStorm News
Currently there is a problem with headlines from this site
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> C and C++ -> c problem
Post new topic  Reply to topic View previous topic :: View next topic 
c problem
PostPosted: Fri Jan 18, 2008 1:26 am Reply with quote
slain
Regular user
Regular user
 
Joined: Jan 17, 2008
Posts: 11




i am just getting into c on backtrack beta 3 and i was following "C for dummies 2nd edition" and wrote the source for goodbye.c:

#include <stdio.h>

int main()
{
printf("Goodbye, cruel world!\n");
return(0);
}

and i get this error msg when im in the the learn folder (cd prog/c/learn):

goodbye.c:7:2: warning: no newline at end of file

can someone tell me what i did wrong?
View user's profile Send private message
PostPosted: Fri Jan 18, 2008 2:51 am Reply with quote
waraxe
Site admin
Site admin
 
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




http://www.linuxquestions.org/questions/programming-9/no-new-line-at-end-of-file-what-does-this-mean-281830/

Code:

Open the file in an editor, go to the last line of the file, and hit enter to add a blank line to the end of the file.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Fri Jan 18, 2008 4:28 am Reply with quote
slain
Regular user
Regular user
 
Joined: Jan 17, 2008
Posts: 11




ya i ended up figuring this out by myself. thx tho
View user's profile Send private message
c problem
  www.waraxe.us Forum Index -> C and C++
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic  




Powered by phpBB 2001-2008 phpBB Group






All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2013 Janek Vind "waraxe"
Page Generation: 0.078 Seconds