home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16240 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.0 KB  |  33 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!kirk!ptcburp!michi
  3. From: michi@ptcburp.ptcbu.oz.au (Michael Henning)
  4. Subject: Re: Hows this for odd
  5. Message-ID: <1992Nov9.231340.10201@ptcburp.ptcbu.oz.au>
  6. Organization: Pyramid Technology Corporation
  7. References: <1992Nov9.102217.23060@monu6.cc.monash.edu.au>
  8. Date: Mon, 9 Nov 1992 23:13:40 GMT
  9. Lines: 22
  10.  
  11. bena@yoyo.cc.monash.edu.au (Ben Aveling) writes:
  12.  
  13. >Just recently I saw the following fragment of code, and I thought I'd share
  14. >it with you all.  (This is real code, part of a real program people will
  15. >pay money for.)
  16.  
  17. >    ... ,(i==0)?TRUE:FALSE,...
  18.  
  19. From the source code for a popular UNIX debugger:
  20.  
  21.     if (strncmp(p, "", 1) != 0) {
  22.         ...
  23.     }
  24.  
  25. There are lots of gems like that around :-(
  26.  
  27.                             Michi.
  28. -- 
  29.       -m------- Michael Henning                 +61 75 950255
  30.     ---mmm----- Pyramid Technology              +61 75 722475 FAX
  31.   -----mmmmm--- Research Park, Bond University  michi@ptcburp.ptcbu.oz.au
  32. -------mmmmmmm- Gold Coast, Q 4229, AUSTRALIA   uunet!munnari!ptcburp.oz!michi
  33.