Deutsch   English   Français   Italiano  
<vpl2k4$24fmt$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: John McCue <jmccue@reddwf.jmcunx.com>
Newsgroups: comp.lang.c
Subject: Re: Which code style do you prefer the most?
Date: Tue, 25 Feb 2025 18:36:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <vpl2k4$24fmt$1@dont-email.me>
References: <vpkmq0$21php$1@dont-email.me>
Reply-To: jmclnx@SPAMisBADgmail.com
Injection-Date: Tue, 25 Feb 2025 19:36:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3f7775156142fb06340c99c0d24912d1";
	logging-data="2244317"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+hH1EJR0c3wd4pydLSxL5M"
User-Agent: tin/2.6.3-20231224 ("Banff") (OpenBSD/7.6 (i386))
Cancel-Lock: sha1:nUgedm7J2b7OorbOM2oLztdMMkU=
X-OS-Version: OpenBSD 7.6 i386
Bytes: 2015

Ar Rakin <rakinar2@onesoftnet.eu.org> wrote:
> Hello there,
> 
> I've been writing C code for a long time, in different styles, but 
> always wanted to know which code style most people prefer. This is all 
> about that question. Which one of the following do you prefer the most?

GNU Style for me. 

<snip>

> 3. Other Styles?

BSD ?  Not sure how different it is from Linux, but OpenBSD
has a detail write up in manual style(9):

https://man.openbsd.org/style

FWIW, people really should learn to use indent(1), will help
with many of these arguments :)  For example:

GNU Style for use with BSD indent(1), File .indent.pro, but
BSD indent(1) may format it a bit different that GNU indent(1).
-i2
-bl
-lp
-nce

GNU Style for use with GNU indent(1), File .indent.pro
--gnu-style
--dont-format-comments
--no-space-after-function-call-names
--dont-break-procedure-type
--line-length78
--case-indentation2

> Thank you.
your welcome

-- 
csh(1) - "An elegant shell, for a more... civilized age."
                     - Paraphrasing Star Wars