This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: I'm trying to port from SunOS to Linux, having problems with "sprintf"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]