Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Dec 1997 12:37:07 +0000 (WET)
From:      Jorge Goncalves <j@bug.fe.up.pt>
To:        questions@freebsd.org
Cc:        dyson@freebsd.org, jkh@freebsd.org, davidg@freebsd.org
Subject:   Is the FreeBSD's GCC broken?
Message-ID:  <Pine.BSF.3.96.971215123129.10420A-100000@bug.fe.up.pt>

next in thread | raw e-mail | index | archive | help

Hi!

I thought you could give some help on this piece of code that I am 
trying to compile under FreeBSD:

     else if ((sscanf(inbuf, "%s tells you: %c", playername, &c) == 2 ) ||
		(sscanf(inbuf, "%s says %c", playername, &c) == 2) ) {
       playername[0]=tolower(playername[0]);
       printf(" (%s) ","TeStInG");
       if (inbuf[strlen(playername)+1] == 't') {
         volume = WHISPER;
         command = inbuf+strlen(playername)+13;
       }
       else {
         volume = SAY;
       	 printf("(%d) => volume ",volume); 
	 command = inbuf+strlen(playername)+7;
       }


The problem is that the sscanf with tells is always ignored.

Please note that this code was compiled on Linux and runs fine, but on
FreeBSD I have this problem.

The system is a 2.2 SNAP of 971112.

Thanks
Jorge Goncalves




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971215123129.10420A-100000>