Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2005 01:37:08 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Michael Madden <madden@cmsrtp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: C Language Style Guide
Message-ID:  <20050125233708.GB2088@gothmog.gr>
In-Reply-To: <20050125232100.GA6169@cmsrtp.com>
References:  <20050125232100.GA6169@cmsrtp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-01-25 17:21, Michael Madden <madden@cmsrtp.com> wrote:
> Is there an accepted standard C language style guide.

No.  This is a common topic in comp.lang.c (despite the fact that style
questions are off-topic) but there is no "universal, one true style".
You may find a lot of suggestions by browsing the archives of the
newsgroup though.

> I'm starting to develop and test my applications on FreeBSD, and I
> want to ensure my code is readable and maintainable.

If you are developing code _for_ FreeBSD, then there is a set of style
guidelines.  You can read it on every FreeBSD system:

	% man 9 style

If, on the other hand, you are developing applications for your own use,
the specific style doesn't matter so much, as long as you like it.

> Does ANSI or POSIX dictate anything about style or coding standards?

Not really.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050125233708.GB2088>