C Language Style Guide
Giorgos Keramidas
keramida at ceid.upatras.gr
Tue Jan 25 15:37:24 PST 2005
On 2005-01-25 17:21, Michael Madden <madden at 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.
More information about the freebsd-questions
mailing list