This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
I'm trying to port from SunOS to Linux, having problems with "sprintf"
- To: gcc-help at gcc dot gnu dot org
- Subject: I'm trying to port from SunOS to Linux, having problems with "sprintf"
- From: Torbjorn Ohlsson <qtorohl at tn dot etx dot ericsson dot se>
- Date: Thu, 10 May 2001 11:29:56 +0200
- Organization: Ericsson Telecom AB
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