This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: printf problem
- To: "jw c" <info2choijo at yahoo dot com>,<newlib at sourceware dot cygnus dot com>
- Subject: Re: printf problem
- From: "Yu Xuanwei" <yxw at chinacluster dot com>
- Date: Wed, 10 Jan 2001 11:16:01 +0800
- References: <20010110011916.20248.qmail@web1802.mail.yahoo.com>
----- 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/
>