Raised This Month: $ Target: $400
 0% 

fwrite_blocks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 04-29-2012 , 14:58   Re: fwrite_blocks
Reply With Quote #3

Quote:
Originally Posted by Emp` View Post
You are writing the entire string to the file. The EOS is the NULL character, which is repeated after "blabla" because the string is empty.

If you only want to write "blabla" then you should use strlen(str) instead of charsmax(str) in fwrite_blocks.
geez im stupid.

Thanks.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable 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 07:49.


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