Curly For C programmers This program is designed to help anybody who does a lot of C debugging. If you ever suffer that annoying little problem of unmatched curly braces, this may help. I got sick of printing my C programs and marking all the routines enclosed by each set of matched curly braces so I wrote a program to do it for me. As it is set, it will take up to 250 line programs of lines no more than 80 characters long. You may also have your brace nestings go about 10 deep. All these constants are defined in the first few lines of the program so (memory permitting), feel free to change them. The print out is very simple. You just get a normal dump except that every line is pushed across about 8 or 9 characters (depending on how deep your biggest nesting is) and down the left hand side of the paper you get some funny characters. These consist of '+' and '!'. A '+' tells you where the curly brace is and the '!' covers all the area in between. You needn't bother about braces enclosed in single, double quotes or comment markers ('/*' and '*/'). I have allowed for them. To start the program once it has been compiled, just type A>curly filename1 filename2 The filename1 does not need a .c on the end but if that or anything else is specified, it will be accepted. Filename2 is not even necessary. If it is not included, the adjusted file will be saved as filename1 with .CUR on the end. If it is included, the filename will be saved as it with its '.ending' or .CUR if one is omitted. The appropriate error messages have been included for those of us who try to CURLY a program that doesn't exist or ends in filename2 it will be overwritten. This version in written for BDS C Version 1.5 so if you have another, you may have to do some adapting. Happy debugging Courtesy Michael Girle