Re: Question about style when converting from K&R to ANSI C.

Larry McVoy
2003-06-01T13:13:06Z

On Sat, May 31, 2003 at 11:56:16PM -0600, Steven Cole wrote:
> Proposed conversion:
>
> int foo(void)
> {
> /* body here */
> }

Sometimes it is nice to be able to see function names with a

grep '^[a-zA-Z].*(' *.c

which is why I've always preferred

int
foo(void)
{
/* body here */
}

Is there some reason that I'm missing that the kernel folks like it the other
way?
--
---
Larry McVoy lm at bitmover.com http://www.bitmover.com/lm