Raised This Month: $ Target: $400
 0% 

fgets, format (general messup)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 04-10-2009 , 17:31   Re: fgets, format (general messup)
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
But it reads \r\n according to the include. So, it will only be zero on eof. Correct me if I'm wrong.
That's why you should always trim() it before using. This way the string will be empty on an empty line.
__________________

Community / No support through PM
danielkza is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode