Functions

strcmp

Supported By

Syntax

[the] strcmp of ( expression , expression )

strcmp ( expression , expression )

Expression yields a string.

Description

The strcmp function compares the two given strings by Unicode code point. If the first string comes before the second, a negative integer is returned. If the first string comes after the second, a positive integer is returned. If the two strings are equal, zero is returned.

The strcmp function is case-insensitive. For a case-sensitive version of this function, see csStrcmp. For a regular expression-based version of this function, see regMatch.

See Also

csStrcmp, regMatch, trMatch