This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
printf problem
- To: newlib at sourceware dot cygnus dot com
- Subject: printf problem
- From: jw c <info2choijo at yahoo dot com>
- Date: Tue, 9 Jan 2001 17:19:16 -0800 (PST)
Hello.
I'm porting newlib to a new cpu. I successfully
compiled gcc & newlib, but when I simulate printf
function, printf("%s\n", str) just prints "%s\n".
printf("hello, world") works correct, it prints
"hello, world", but
char str[20]="hello, world";
printf("%s\n", str);
prints "%s\n" itself.
Can someone tell me why? Thank you.
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/