I'm trying to port from SunOS to Linux, having problems with "sprintf"
Alexandre Oliva
aoliva@redhat.com
Thu May 10 17:49:00 GMT 2001
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
More information about the Gcc-help
mailing list