std io and '\n'..

Serhan Gürmeriç serhang@anadolu.edu.tr
Fri Feb 23 00:16:00 GMT 2007


Hello..

     I'm using newlib for my small x86 based operating system. For now, 
i'm trying to implement standart io functions such as read, write, close 
etc.. When i test printf function, i saw that it gives only a part of my 
output string to my write function if i use '\n' char in the string.

for example:

printf("abc\ndef:%i",0);
after such a func..

libc sends four byte of the string.
[ write( stdoutfd, "abc\n", 4 ) ]

What is my fault..
Thanks..
Serhan



More information about the Newlib mailing list