strcmp (string, string) stricmp (string, string)
A negative number if the first string is ordinally less than the second string according to the ASCII character set, a positive number if the first string is greater than the second, and zero if the two strings are exactly equal.
These functions can be used as comparison functions for sort and insert. stricmp performs the same function as strcmp, but alphabetic characters are compared without regard to case. That is, "A" and "a" are considered equal by stricmp, but different by strcmp.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.