home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!mips!darwin.sura.net!convex!egsner!lerami!taoami!robertk
- From: robertk@taoami.lerctr.org (Robert Kesterson)
- Newsgroups: comp.lang.c
- Subject: Re: HIgher problems at hand. HELP!
- Message-ID: <robertk.02v9@taoami.lerctr.org>
- Date: 26 Jul 92 05:02:30 GMT
- References: <Brv6oD.Dq5@usenet.ucs.indiana.edu> <1992Jul25.142216.5636@druid.uucp>
- Organization: Not an Organization
- Lines: 25
- X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
-
- In article <1992Jul25.142216.5636@druid.uucp> darcy@druid.uucp (D'Arcy J.M. Cain) writes:
- > shulick@navajo.ucs.indiana.edu writes:
- > >int strstr(char *data, char *chunk)
- >
- > Actually, strstr() returns a char *. The actual prototype is:
- >
- > char *strstr(const char *, const char *);
- >
- > >What's wrong with this subroutine? I'm making strstr() since Amiga C
- > >doesn't have it.
- [ stuff deleted ]
- >
- > Are you sure that the Amiga doesn't have this routine built in or something?
- > If you are expecting an int index into the string and actually get back a
- > pointer you may see results such as these.
- [ more stuff deleted ]
-
- I don't know what compiler is in question here, but so far as I know there
- should be a strstr() on the Amiga. I just tried it in SAS/C 5.10, and it
- is in there, and works as expected.
-
- --
-
- ======================================================
- Robert Kesterson robertk@taoami.lerctr.org
-