home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!cs.utexas.edu!convex!news.oc.com!utacfd.uta.edu!rwsys!lerami!dalsil!titus
- From: titus@dallas.sil.org
- Newsgroups: comp.software-eng
- Subject: Re: C code layout
- Message-ID: <1992Dec18.135227.76@dallas.sil.org>
- Date: 18 Dec 92 13:52:27 CST
- Organization: Summer Institute of Linguistics, Dallas Center
- Lines: 118
-
- I know we all have our favorite templates, but I thought I'd
- pass these on to give folks "something to shoot at" ;-)
-
- These files are my own creation, but were written to conform
- to the C coding standard at the site at which I was working.
- If they prove useful, great, if not, this posting shouldn't
- eat up too much disk space.
-
- * * * * * * * * * * * * * * * * *
- Mike Titus, Programmer /\ Summer Institute
- SIL / \ of
- 7500 West Camp Wisdom Road /SIL \ Linguistics
- Dallas, Texas 75236-5699 --------
- U.S.A.
- Voice : (214) 709-2400 * Internet <titus@dallas.sil.org>
- Facsimile: (214) 709-3387 * UUCP ...utafil!txsil!dalsil!titus
- HAM radio (not on packet yet) KB4ABZ *
-
- "I can do everything through Him who gives me strength."
-
- Philippians 4:13 (NIV)
- * * * * * * * * * * * * * * * * *
-
- file FUNCMOD.TXT--this is the header for a file containing one or more
- functions, as opposed to the file containing main().
-
- /****************************************************************************/
- /* */
- /* <filename> */
- /* */
- /****************************************************************************/
-
- /* Change history:
- *
- * Date Version Author Description
- *
- */
-
- /* Global functions contained in this module:
- *
- * <name>--<description>
- *
- */
-
- /* System includes */
- #include <stdio.h>
-
- /* Local includes */
-
- /* DEFINEs */
-
- /* TYPEDEFs */
-
- /* Externs */
-
- /* Static variables */
-
- file MAINMOD.TXT--this is the header for a file containing main()
-
- /****************************************************************************/
- /* */
- /* <filename> */
- /* */
- /****************************************************************************/
-
- /* <one-line description of program> */
-
- /* Change history:
- *
- * Date Version Author Description
- *
- */
-
- /* <detailed description of program, including inputs and outputs>
- *
- */
-
- /* System includes */
- #include <stdio.h>
-
- /* Local includes */
-
- /* DEFINEs */
-
- /* TYPEDEFs */
-
- /* Global variables */
-
- /* Static variables */
-
- main( argc, argv )
- int argc;
- char *argv[];
- {
- }
-
- file PROCHEAD.TXT--this is the header for a procedure
-
- /****************************************************************************/
- /* <brief description of function> */
- /****************************************************************************/
- /* <declaration of calling parameters> */
-
- /*
- * Description:
- *
- * Return value:
- *
- * Globals input:
- *
- * Globals output:
- *
- * Error conditions:
- *
- * Other procedures called:
- *
- */
-
-