home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / software / 5069 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.2 KB

  1. Path: sparky!uunet!seas.smu.edu!utacfd.uta.edu!rwsys!lerami!dalsil!titus
  2. From: titus@dallas.sil.org
  3. Newsgroups: comp.software-eng
  4. Subject: Re: C code Layout
  5. Message-ID: <1992Dec18.100545.74@dallas.sil.org>
  6. Date: 18 Dec 92 10:05:45 CST
  7. Organization: Summer Institute of Linguistics, Dallas Center
  8. Lines: 29
  9.  
  10.   I guess I might as well throw in my two-cents worth, too.
  11. My own style runs to:
  12.  
  13.       if (...)
  14.         {
  15.           statement;
  16.         }
  17.       else
  18.         {
  19.           statement;
  20.         } /* End--<whatever was going on> */
  21.  
  22. I tend to follow the general rule of an END comment for the
  23. }, no matter what the control structure was (i.e.--if, for,
  24. while, etc.).
  25.  
  26.                * * * * * * * * * * * * * * * * *
  27. Mike Titus, Programmer                  /\   Summer Institute
  28. SIL                                    /  \        of
  29. 7500 West Camp Wisdom Road            /SIL \   Linguistics
  30. Dallas, Texas  75236-5699            --------
  31. U.S.A.
  32. Voice    : (214) 709-2400             * Internet <titus@dallas.sil.org>
  33. Facsimile: (214) 709-3387             * UUCP     ...utafil!txsil!dalsil!titus
  34. HAM radio (not on packet yet) KB4ABZ  *
  35.  
  36. "I can do everything through Him who gives me strength."
  37.  
  38.       Philippians 4:13 (NIV)
  39.