home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Newsgroups: comp.lang.c
- Subject: Re: Problems with Case statements HELP!
- Keywords: case help lost c not
- Message-ID: <1992Dec17.220516.7049@thunder.mcrcim.mcgill.edu>
- Date: 17 Dec 92 22:05:16 GMT
- References: <Bz18KA.MCv@access.digex.com>
- Distribution: na
- Organization: McGill Research Centre for Intelligent Machines
- Lines: 21
-
- > Distribution: usa
-
- Hm, someone is leaking usa distribution outside the USA....
-
- In article <Bz18KA.MCv@access.digex.com>, jhurwitz@access.digex.com (j. hurwitz) writes:
-
- > Okay, I'm new to C so you'll have to forgive my lame question.
- > Anyhoot, I'm trying to write a program that will check for balanced
- > braces in my C source code. I have no problem when I do this:
-
- > //programm to read a C source file and verify # of left to right braces
- > while ((ch =getc(fptr)) !=EOF) //gets chars
-
- This program may read C code, but it's not written in C; those double
- slashes are syntax errors in C. You'd probably be better off asking in
- a group appropriate for whatever language it is written in.
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-