From owner-freebsd-questions@FreeBSD.ORG Tue Jan 25 23:37:24 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F7A216A4CE for ; Tue, 25 Jan 2005 23:37:24 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 900ED43D1D for ; Tue, 25 Jan 2005 23:37:23 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a120.otenet.gr [212.205.215.120]) j0PNb9Ex020337; Wed, 26 Jan 2005 01:37:10 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id j0PNb8wD002253; Wed, 26 Jan 2005 01:37:08 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id j0PNb8DU002252; Wed, 26 Jan 2005 01:37:08 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 26 Jan 2005 01:37:08 +0200 From: Giorgos Keramidas To: Michael Madden Message-ID: <20050125233708.GB2088@gothmog.gr> References: <20050125232100.GA6169@cmsrtp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050125232100.GA6169@cmsrtp.com> cc: freebsd-questions@freebsd.org Subject: Re: C Language Style Guide X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 23:37:24 -0000 On 2005-01-25 17:21, Michael Madden 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.