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

Torbjorn Ohlsson qtorohl@tn.etx.ericsson.se
Thu May 10 02:30:00 GMT 2001


I have been told that sprintf(str, fmt,..) returns a pointer to "str" on
unix whereas Linux returns the number of characters which were put on
the string.
Is there any way to get around this problem?
Could it be solved compiling in a special way? or should the c-code be
rewritten?

Regards,
/Tobbe



More information about the Gcc-help mailing list