Hey guys.
I make a string:
PHP Code:
new str[65] = "blabla"
and then I do
PHP Code:
str[strlen(str)] = EOS
and then
PHP Code:
fwrite_blocks(some_file_i_opened, str, charsmax(str), BLOCK_CHAR)
Then when I look in that file (I use Notepad++), I see:
"blabla[NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL].... etc...."
at the amount of 65 (which is the str length) - blabla characters, which is 6. I see it then 59 times.
Why is that? I do the EOS thing, what is wrong with the code? (there is no code to show, its really only these 3 lines after I fopen(some_file_i_opened, "rt+")
__________________