Comparing strings...

Gregory M. Stelmack stelmack at screamer.csee.usf.edu
Tue Oct 16 00:31:20 AEST 1990


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 at 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!



More information about the Comp.lang.c mailing list