I am using fputs like so
where linebuf is a string from stdio and history_stream is a text file.PHP Code:
strcat(linebuf, "\n");
fputs(linebuf, history_stream);
instead of writing "hello i am here" to a text file, it simply write "hello", and misses of the rest of the string.
This a regular problem?