Previous Up Next

strcmp
Compares two character strings (by using the standard C function).

I strcmp (
S _a_
S _b_
)
Parameters

_a_
any string
_b_
any string
Return value

comparison result. 0 if equal, 1 if _a_ greater than _b_, -1 else

if _a_ and _b_ are nil, 0 is returned
if only _a_ is nil, -1 is returned
if only _b_ is nil, 1 is returned.