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]

Re: printf problem



----- Original Message ----- 
From: jw c <info2choijo@yahoo.com>
To: <newlib@sourceware.cygnus.com>
Sent: Wednesday, January 10, 2001 9:19 AM
Subject: 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". 
> 

Which CPU and architecture?

> 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]