Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!ziggy!screamer!stelmack From: stelmack@screamer.csee.usf.edu (Gregory M. Stelmack) Newsgroups: comp.lang.c Subject: Re: Comparing strings... Summary: Not all libraries have all str functions... Message-ID: <85@screamer.csee.usf.edu> Date: 15 Oct 90 14:31:20 GMT References: <11486@alice.att.com> <3343@idunno.Princeton.EDU> <1990Oct15.042851.18595@zoo.toronto.edu> Followup-To: comp.lang.c Organization: University of South Florida, Department of Computer Science and Engineering Lines: 15 One reason why you might want your own code is if you need a specific string comparison that your library does not have. Including specific string comparison functions may make your code non-portable, as it did with a chunk of code I wrote. SAS/C for the Amiga has a nice stricmp() function which does case-insensitive comparisons (A==a). A friend of mine had it bomb on compile with Manx, and had to change this call to another. So, I wrote my own string compare to do what I want. Just had to show a situation in which you may want your own code... -- Greg Stelmack -- Email: stelmack@sol.csee.usf.edu -- USmail: USF Box 1510, Tampa, FL 33620-1510 -- Amiga: the only way to compute! -- IRAQNOPHOBIA: Nothing a little RAID wouldn't cure!