From: Jesu Francois Michelangelo Serafica (jesu.francois@usa.net)
Date: Mon Nov 27 2000 - 01:11:06 EST
Greetings,
Weve encountered the same problem for printf(" ....."); in general on
uClinux on 5206eC3. I have no authoritative answer for the reason, but
fflush()-ing after printf calls seems to do the trick.
"Lars Qvist" <lars.qvist@netg.se> wrote:
> ---------------------------------------------
> Attachment:
> MIME Type: multipart/alternative
> ---------------------------------------------
I have experienced following problem with uClinux and uCsimm:
Writing in C (use = convert from lower case to upper case. Conversion
removed!)
gets(s);
for(y=0, s[y], y++]
{
printf("%c", s[y]); /* Printing OK
}
print_upper(s);
void print_upper(char *gustav)
{
char *t;
for(t=gustav, *t, t++)
{
printf("%c%", *t); /*Missing one or more of the last characters in
the string?
}
}
If I end the printf with a puts("") all characters are printed!!!
Any clues?
Other C-compilers handle this OK.
Has it something to do that the FIFO-buffer in the the UART is not emptied
when leaving the function?
Best Regards
Lars Qvist
Michelangelo A. Serafica
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:19 EDT