B: ret = compare( string1, string2 );
/* C users use "strcmp" */
compare( "abd", "abc" );
returns a 3. "ret" receives a positive value if "string1>string2" and it receives a negative value if "string1<string2".
COMPARE compares two strings. It returns a zero if the two strings are identical and otherwise indicates the first position in which the two differ.
Copyright © 1996, Thinkage Ltd.