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]

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


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


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