home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11622 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.4 KB

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