From owner-freebsd-questions Mon Dec 15 04:37:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA23079 for questions-outgoing; Mon, 15 Dec 1997 04:37:36 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from bug.fe.up.pt (bug.fe.up.pt [193.136.54.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA23066; Mon, 15 Dec 1997 04:37:20 -0800 (PST) (envelope-from j@bug.fe.up.pt) Received: from localhost (j@localhost) by bug.fe.up.pt (8.8.8/8.8.8) with SMTP id MAA10840; Mon, 15 Dec 1997 12:37:07 GMT (envelope-from j@bug.fe.up.pt) Date: Mon, 15 Dec 1997 12:37:07 +0000 (WET) From: Jorge Goncalves To: questions@freebsd.org cc: dyson@freebsd.org, jkh@freebsd.org, davidg@freebsd.org Subject: Is the FreeBSD's GCC broken? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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