home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 17011 < prev    next >
Encoding:
Text File  |  1992-11-22  |  905 b   |  26 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!newsflash.concordia.ca!sifon!homer.cs.mcgill.ca!news
  3. From: iceman@honey.cs.mcgill.ca
  4. Subject: C coding style
  5. Message-ID: <1992Nov20.213253.386@cs.mcgill.ca>
  6. Sender: news@cs.mcgill.ca (Netnews Administrator)
  7. Organization: SOCS, McGill University, Montreal, Canada
  8. Distribution: NA
  9. Date: Fri, 20 Nov 1992 21:32:53 GMT
  10. Lines: 14
  11.  
  12. Hello,
  13.  
  14.     What kind of convention is usually used for naming global variables?
  15.     I know Apple recommends adding a lower-case 'g' in front of the
  16.     variable name, e.g. gDeviceList. However, when using multi-file
  17.     projects, this doesn't differentiate between static globals (private
  18.     to the module) and extern globals (public globabls that can be
  19.     refered to from outside the module they're declared in).
  20.  
  21. --
  22. ----------------------------------------
  23. McGill University                E-mail: iceman@cs.mcgill.ca
  24. School Of Computer Science            Tuan Huynh
  25.  
  26.