Alexander Malmberg wrote:
Adam Fedor wrote:
I'm thinking of adding this change to gnustep-base config/config.vsprintf. Richard changed this so the proper number of arguments are passed to vsprintf, but this actually causes the program to crash on my GNU/Linuxx/PPC (gcc 2.95). Anyone have a better idea?
It might have to do with different calling conventions for vararg functions on ppc. Maybe providing a prototype would help.
Possible. This seems to work:
/* Exit with status 0 if vsprintf returns the length of the string printed. Some systems return a pointer to the string instead. */ #include <stdio.h> #include <stdarg.h>
int main ()
{
char buf[128];
va_list ap;
if (vsprintf (buf, "1234", ap) == 4)
exit (0);
exit (-1);
}Does this work also on other people's machines?
_______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
