This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

printf problem


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]