home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18564 < prev    next >
Encoding:
Internet Message Format  |  1992-12-18  |  1.2 KB

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