Date: Mon, 28 Feb 2005 21:55:07 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Mark Jayson Alvarez <jay2xra@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Word counting by Kernighan won't compile =( Message-ID: <20050301055506.GA30984@xor.obsecurity.org> In-Reply-To: <20050301052323.29837.qmail@web51610.mail.yahoo.com> References: <20050301052323.29837.qmail@web51610.mail.yahoo.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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"
>
> It exited with errors:
>
> word.c: In function `main':
> word.c:17: error: invalid lvalue in assignment
>
> Any idea what this means?
YOu didn't copy it verbatim ;-)
> if (c == ' ' || c == '\n' || c = '\t')
^^
Kris
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
iD8DBQFCJAO6Wry0BWjoQKURAtYrAJwIAKBiKiB+8V5Ku9DQe1UiNnntOwCg+Eh/
BWp2CDHOKJU8XfYqBmPbr/w=
=8Tgz
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050301055506.GA30984>
