This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
std io and '\n'..
- From: Serhan Gürmeriç <serhang at anadolu dot edu dot tr>
- To: newlib at sourceware dot org
- Date: Fri, 23 Feb 2007 02:03:23 +0200
- Subject: std io and '\n'..
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