Richard Frith-Macdonald wrote:
Perhaps something like this? If that doesn't work then I guess vsprintf() is broken.

#include <stdarg.h>
static int func(const char *fmt, ...)
{
  va_list ap;
  char buf[128];
  int result;

  va_start(ap, fmt);
  result = vsprintf(buf, fmt, ap);
  va_end(ap);
  return result;
}

int main()
{
  if (func("1234", 0) == 4)
....


Yes. we really should do it the right way :-)




_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to