Undefined behaviour causing problems on AVR32

Torbjorn Granlund tg at gmplib.org
Mon Apr 13 19:46:31 CEST 2009


Bradley Smith <bradsmith at debian.org> writes:

  Come to think of it, you could do something like the following:
  
  static int
  scan (const char **sp, const char *fmt, ...)
  {
      va_list ap;
      int ret;
  
      va_start(ap, fmt);
      ret = vsscanf(*sp, fmt, ap);
      va_end(ap);
  
      return ret;
  }
  
Thanks!

-- 
Torbjörn


More information about the gmp-bugs mailing list