Re: [hackers] [st] Use BSD-style function notation || FRIGN

From: Dmitrij D. Czarkoff <czarkoff_AT_gmail.com>
Date: Sun, 12 Jul 2015 07:39:04 +0200

Pickfire said:
>> 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

Nope.

| 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
| }

-- 
Dmitrij D. Czarkoff
Received on Sun Jul 12 2015 - 07:39:04 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 12 2015 - 07:48:10 CEST