Greetings.
On Sun, 12 Jul 2015 06:22:40 +0200 Pickfire <pickfire_AT_riseup.net> wrote:
>
> On Sat, Jul 11, 2015 at 06:29:38PM +0200, Christoph Lohmann wrote:
> >On Sat, 11 Jul 2015 18:29:38 +0200 Pickfire <pickfire_AT_riseup.net> wrote:
> >> I think linux-style is better:
> >>
> >> int main() {
> >> printf("Hello!");
> >> }
> >
> >Linux kernel style is this:
> >
> > int main()
> > {
> > printf("Hello!\n");
> >
> > return 0;
> > }
>
> Sorry, the functions for linux is different:
> https://www.kernel.org/doc/Documentation/CodingStyle
Stop wasting our time.
> However, there is one special case, namely functions: they have the
> opening brace at the beginning of the next line, thus:
>
> int function(int x)
> {
> body of function
> }
Sincerely,
Christoph Lohmann
Received on Sun Jul 12 2015 - 06:22:40 CEST