From owner-freebsd-questions@FreeBSD.ORG Tue Mar 1 05:55:08 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EE0516A4CE for ; Tue, 1 Mar 2005 05:55:08 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 158C743D1D for ; Tue, 1 Mar 2005 05:55:08 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1711651310; Mon, 28 Feb 2005 21:55:07 -0800 (PST) Date: Mon, 28 Feb 2005 21:55:07 -0800 From: Kris Kennaway To: Mark Jayson Alvarez Message-ID: <20050301055506.GA30984@xor.obsecurity.org> References: <20050301052323.29837.qmail@web51610.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline In-Reply-To: <20050301052323.29837.qmail@web51610.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Word counting by Kernighan won't compile =( X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 05:55:08 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 28, 2005 at 09:23:22PM -0800, Mark Jayson Alvarez wrote: > command line, until I send an EOF signal. I copied it > verbatim and tried compiling it with plain "cc > myprog.c"=20 >=20 > It exited with errors: >=20 > word.c: In function `main': > word.c:17: error: invalid lvalue in assignment >=20 > Any idea what this means? YOu didn't copy it verbatim ;-) > if (c =3D=3D ' ' || c =3D=3D '\n' || c =3D '\t') ^^ Kris --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCJAO6Wry0BWjoQKURAtYrAJwIAKBiKiB+8V5Ku9DQe1UiNnntOwCg+Eh/ BWp2CDHOKJU8XfYqBmPbr/w= =8Tgz -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--