Help needed : Problem with printf
Tue Aug 6 12:33:00 GMT 2002
Presently I am testing the libary on a simulator, so I am using the
write stub as system call. When I have to use it with the
board, I am going to use USART for I/O.
Is there any way to test all the library calls for newlib library.
muclibc comes with it's testsuite that provides some testcases. Have
you used that before?
Thanks for your help.
From: Robles RomÃ¡n, JosÃ© Miguel [mailto:firstname.lastname@example.org]
Sent: Tuesday, August 06, 2002 3:55 PM
To: Banit Agrawal
Subject: RE: Help needed : Problem with printf
It depends on the specific application. I usually work in line buffered
mode, but when it is interesting to me seing less than a complete line
(for example in "Select an option: "), I use fflush.
My target is m68k-coff without SO, the I/O is implemented through serial
>De: Banit Agrawal [mailto:email@example.com]
>Enviado el: martes, 06 de agosto de 2002 10:07
>Para: Robles RomÃ¡n, JosÃ© Miguel
>Asunto: RE: Help needed : Problem with printf
>Thanks, It is working now. It is using buffersize=8 in setvbuf
>function. is it have a optimum value?
>[mailto:firstname.lastname@example.org]On Behalf Of Robles RomÃ¡n, JosÃ©
>Sent: Tuesday, August 06, 2002 1:18 PM
>Subject: RE: Help needed : Problem with printf
>>> printf("hello world");
>>> it doesn't print anything in the output.
>>standard output is usually line buffered which means that output is
>>buffered until you print a newline.
>If you want to send the buffer to the output device, you may use
>JosÃ© Miguel Robles RomÃ¡n
>San Fernando de Henares
>Madrid, 28760 Spain
More information about the Newlib