home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17873 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.1 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!rutgers!cbmvax!jesup
  2. From: jesup@cbmvax.commodore.com (Randell Jesup)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Is utility.library/Stricmp() broken?
  5. Message-ID: <38163@cbmvax.commodore.com>
  6. Date: 28 Dec 92 20:34:14 GMT
  7. References: <1992Dec25.225239.27584@llyene.jpl.nasa.gov>
  8. Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 23
  11.  
  12. john@pluto.Jpl.Nasa.Gov writes:
  13. >Is the AmigaDOS 2.04 utility.library/Stricmp() broken?
  14.  
  15.     Not that I know of...
  16.  
  17. >I am using Aztec C 5.2a on a 2000HD with DOS 2.04.
  18.  
  19. >  qsort_comparison( void * s1, void * s2 )
  20. >  {
  21. >    return (int) Stricmp( *(char**)s1, *(char**)s2 );
  22. >  }
  23.  
  24.     Are you certain that those void *'s are char **'s?  Did you try it
  25. with strcmp in the same place?  Are you including clib/utility_protos.h?
  26. Are you certain that your qsort wants <0, 0, or >0 for a return, and not
  27. -1, 0, and 1?
  28.  
  29. -- 
  30. To be or not to be = 0xff
  31. -
  32. Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
  33. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com  BIX: rjesup  
  34. Disclaimer: Nothing I say is anything other than my personal opinion.
  35.