home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15869 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  772 b 

  1. Path: sparky!uunet!know!cass.ma02.bull.com!think.com!ames!kronos.arc.nasa.gov!iscnvx!netcomsv!terapin!paulk
  2. From: paulk@terapin.com (Paul Kienitz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Bug in SAS/C 6.0 library : strstr ()
  5. Message-ID: <paulk.27p8@terapin.com>
  6. Date: 15 Nov 92 20:13:14 GMT
  7. References: <Bxnw8z.CvD@unx.sas.com>
  8. Organization: BBS
  9. Lines: 9
  10.  
  11. > Basically, ANSI states that "If an array is accessed beyond the end
  12. > of an object, the behavior is undefined."  (Section 4.11.1, first
  13. > para.)
  14. > A NULL character array has no size, so trying to access a member of
  15. > it at *all* is accessing "beyond the end" of it.
  16.  
  17. But he was not talking about a null pointer, he was ta about
  18. "\0".  Actually, I would think returning success in that case is valid.
  19.