problem building gmp on Mac G5

Kevin Ryde user42 at
Wed Jan 7 10:29:36 CET 2004

Kate Minola <kminola at> writes:
> it seems that the output of sscanf in the above situation
> is not well-defined ... and in the FreeBSD case, not likely
> to change any time soon.

Hmm.  Well, I guess what c99 says is certainly about as clear as mud,
but I think I took the view that what it was trying to say was the
traditional style where what would be a 0 return becomes EOF if end of
input is encountered when wanting a match (ie. anything except

> I do not have access to other machines with operating
> systems based on FreeBSD other than Mac OS X v10.3 (which
> is based upon FreeBSD 5.0).  Thus I can not do a comparison
> check.

All our test systems except darwin7 follow our expectations.  There's
some freebsd5.0 and 5.1 among them.

What also makes me believe this darwin sscanf bit is either broken or
a very bad idea is that fscanf continues to return -1 for similar

	#include <stdio.h>

	main (void)
	  printf ("%d\n",
	          scanf ("%*d"));
	  return 0;

run as "./a.out </dev/null".

C99 explicitly says end of string for sscanf is equivalent to end of
file for fscanf :-(.

All followups to gmp-bugs at please.

More information about the gmp-bugs mailing list