Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!hplabs!hpda!hpcupt1!hpisod2!decot
From: decot@hpisod2.HP.COM (Dave Decot)
Newsgroups: comp.unix.wizards
Subject: Re: Re: braces (was: Latest indent request)
Message-ID: <14020049@hpisod2.HP.COM>
Date: 6 Dec 88 14:34:44 GMT
References: <9076@smoke.BRL.MIL>
Organization: Hewlett Packard, Cupertino
Lines: 36

> NO, THIS IS HOW YOU DO IT.  It's the only way :-) !
> 
> main (argc, argv)
> int argc;
> char *argv[];
> {
> 	int foo;
> 	char bar;
> 
> 	if (expr)
> 	{
> 		while (cond)
> 		{
> 		}
> 	}
> }

So close!  However, this really should be:

main (argc, argv)
int argc;
char *argv[];
{
    int foo;
    char bar;

	if (expr)
	{
		while (cond)
		{
		}
	}
}

Dave Decot
hpda!decot