home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 145 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  39 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Message-ID: <zp0e60aC1XREZf0@pp78hsp.hsp.owl.de>
  3. From: T.EICHER@HSP.owl.de (Thomas Eicher)
  4. Path: hsp.owl.de!T.EICHER
  5. Subject: Exec Lists once again
  6. Date: Tue, 02 Jan 1996 22:49:06 +0100
  7. X-Mailer: Zodiac's Point 37.204 [REGISTERED 00F0]
  8. X-Gateway: ZCONNECT UP luxor.owl.de [UNIX/Connect v0.73]
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Z-PGP-KEY-AVAIL: 
  13.  
  14.  
  15. Sorry, seems I still don't get it.
  16.  
  17. RKMs tell me that lh_TailPred is the last Node in List while
  18. lh_Tail is NULL.
  19.  
  20. So - in a loop with struct Node *np = np.lh_Succ a few times - why
  21. are the following expressions not equivalent ?
  22.  
  23. (and they aint!)
  24.  
  25.       while (np->ln_Pred != namelist.lh_TailPred)
  26.  
  27.       while (np! = namelist.lh_Tail)
  28.  
  29. The first one gives the correct result. How would I phrase it in
  30. a straightforward way ?
  31.  
  32. Thanks anyway :-)
  33.  
  34. mfg, Tom.
  35. <mailto:t.eicher@hsp.owl.de><http://royal.owl.de/~eicher/>
  36. --
  37.  
  38. Windows for the masses - Amiga for the creative mind :^)
  39.