This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: I'm trying to port from SunOS to Linux, having problems with "sprintf"
- To: Florian Weimer <Florian dot Weimer at RUS dot Uni-Stuttgart dot DE>
- Subject: Re: I'm trying to port from SunOS to Linux, having problems with "sprintf"
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 10 May 2001 21:49:06 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3AFA5F94.CED25998@tn.etx.ericsson.se><tgbsp13xqe.fsf@mercury.rus.uni-stuttgart.de>
On May 10, 2001, Florian Weimer <Florian.Weimer@RUS.Uni-Stuttgart.DE> wrote:
> Torbjorn Ohlsson <qtorohl@tn.etx.ericsson.se> writes:
>> I have been told that sprintf(str, fmt,..) returns a pointer to "str" on
> Such a C environment is seriously broken.
I suppose it's just an old standard, not something seriously broken.
Anyway, it's true that SunOS 4 behaved like that, and the only way to
get around the problem is to fix the code (unless you'd rather use a
custom glibc in your porting-to-GNU/Linux efforts :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me