home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / hackers / 1154 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.2 KB  |  24 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!taronga!peter
  3. From: peter@taronga.com (Peter da Silva)
  4. Subject: Re: not a test
  5. Message-ID: <0JNHGMG@taronga.com>
  6. Organization: Taronga Park BBS
  7. References: <ik89NB1w164w@kzdoos.hacktic.nl> <1992Jul23.075512.21400@cbfsb.cb.att.com> <1992Jul23.101031.27724@jarvis.csri.toronto.edu>
  8. Date: Fri, 24 Jul 1992 01:59:00 GMT
  9. Approved: Dogcow, and all the race conditions in the Macintosh API.
  10. Lines: 12
  11.  
  12. In article <1992Jul23.101031.27724@jarvis.csri.toronto.edu> flaps@dgp.toronto.edu (Alan J Rosenthal) writes:
  13. >good god, please just use strtok().  Get to know your friendly neighbourhood C
  14. >library.  This is EXACTLY what strtok() is for.
  15.  
  16. Good god, please don't use strtok. It's inherently non-reentrant and it's not
  17. even usable in cooperative threads. Define a new function that operates on a
  18. string handle or a string file, but let strtok die a well deserved death.
  19. -- 
  20.                                                                 `-_-'
  21.                          Have you hugged your wolf today?        'U`
  22.  
  23. Peter da Silva, Taronga Park BBS, Houston, TX  +1 713 568 0480/1032
  24.