This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Optimize sprintf(buffer,"foo")
On Mon, Jun 23, 2003 at 02:52:09PM -0400, Jakub Jelinek wrote:
> On Mon, Jun 23, 2003 at 02:32:35PM -0400, Michael Meissner wrote:
> > On Mon, Jun 23, 2003 at 04:07:18PM +0100, Joseph S. Myers wrote:
> > > On Mon, 23 Jun 2003, Jakub Jelinek wrote:
> > >
> > > > Then, if we have some way to find out at compile time the target platform
> > > > provides stpcpy in libc (dunno whether explicit stpcpy prototype would
> > > > be enough or whether we need some #pragma or whatever),
> > I doubt you would find any system that provides sprintf but not strcpy. I have
> > seen embedded systems that didn't bother providing sprintf, but they did
> > provide strcpy.
> But this is about stpcpy which is not ISO C function.
I must admit I had been reading this as strcpy. Sorry about that.