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