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